×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    17

    python on windows mobile?

    if i already build an app for s60 using python, does it will work on windows mobile with some modification?? or how?? thanks in advanced.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: python on windows mobile?

    If you're talking about Windows Mobile you should find other forums and resources online. This forum is for Windows Phone on Nokia products.

    If you are indeed referring to Windows Phone, Python is not available for it so you will have to rewrite your application entirely in Silverlight.

  3. #3
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India
    Posts
    138

    Re: python on windows mobile?

    Dear Batousai15,

    AFAIK, Windows Phone 7 OS supports only Silverlight 4, Xaml, C# and VB.
    See Windows Phone 7 Architecture

    application port is the solution.

    Hope it helps.
    Pavan Pareta
    Sr. Software Engineer
    http://windows-mobile-dev.blogspot.com

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: python on windows mobile?

    Check http://www.codeplex.com/wikipage?ProjectName=IronPython, it may help (not sure about it, just found it with Google)

  5. #5
    Registered User
    Join Date
    Mar 2011
    Posts
    17

    Re: python on windows mobile?

    thank you for your reply...i think windows phone can run python script...but im not so sure yet.
    Last edited by batousai15; 2011-10-26 at 15:13.

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: python on windows mobile?

    Quote Originally Posted by batousai15 View Post
    thank you for your reply...i think windows phone can run python script...but im not so sure yet.
    There is no Python implementation by Nokia for Windows Phone.

    There is no Python implementation by Microsoft for Windows Phone.

    No Windows Phone comes with any built-in Python implementations from others.

    Otherwise, check wizard_hu's link to "IronPython"; it might work on .NET on PC's, but not necessarily on Windows Phone, though.

  7. #7
    Registered User
    Join Date
    Jul 2007
    Posts
    26

    Re: python on windows mobile?

    I think technically it is possible, after all the CLR only cares about the IL code produced from C# or VB, but there is no easy way to do this.

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    919

    Re: python on windows mobile?

    Quote Originally Posted by digitalsurgeon View Post
    I think technically it is possible, after all the CLR only cares about the IL code produced from C# or VB, but there is no easy way to do this.
    Their SDK only supports C# and VB.NET. Unless MS makes it possible to use other languages in the future, you will have to port it. Also note that the .net framework on the fomr is not exacly the same as on the desktop.

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: python on windows mobile?

    Honestly said I was a bit struck by #2-#3 already, but removed my rant from #4 prior to posting.

    This thread clearly over-mystifies Python. Python is somewhere at the border of languages which are generally compiled (like C, C++) and languages which are generally interpreted (like Perl, JavaScript). As Python can be, and is often, used as an interpreted language, it does not matter what Microsoft/WP7/Silverlight/.Net CLR/the SDK itself support or not, someone can freely create a Python interpreter in one of the supported languages (likely C#), and use it for executing Python code.
    Python on S60 is an interpreter too, just to bring an obvious example, which fits both with the original question and with the history of this site.

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    919

    Re: python on windows mobile?

    Quote Originally Posted by wizard_hu_ View Post
    Honestly said I was a bit struck by #2-#3 already, but removed my rant from #4 prior to posting.

    This thread clearly over-mystifies Python. Python is somewhere at the border of languages which are generally compiled (like C, C++) and languages which are generally interpreted (like Perl, JavaScript). As Python can be, and is often, used as an interpreted language, it does not matter what Microsoft/WP7/Silverlight/.Net CLR/the SDK itself support or not, someone can freely create a Python interpreter in one of the supported languages (likely C#), and use it for executing Python code.
    Python on S60 is an interpreter too, just to bring an obvious example, which fits both with the original question and with the history of this site.
    I guess that its possible to do something like that, but each app would need to have its own interpreter. Perhaps a common library or something that you could add to your project and deploy. You cant install reusable components that could be accessible to all apps on the windows phone. Plus your app is limited to accessing the storage space allocated to it, it cant access other apps storage. An interpreter would need to be isolateed for each app, unless of course Microsopft decided to support it.

    Another option is somerthing like TouchDevelop app. You can create scripts on the phone but all apps run inside the TouchDevelop environment. You can Pin an Script to the home screen but what will happen is that TouchDevelop opens and executes the script.

    Heres the website about the app. Its really amazing btw, with lots of people publishing scripts: http://www.touchdevelop.com/

    Cheers

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: python on windows mobile?

    Yes, currently that is the way. However it is true for any re-usable component one develops for WP7. Shared 3rd-party libraries are what missing, or at least that is my understanding now. It is not specific to this particular use-case.

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    919

    Re: python on windows mobile?

    Quote Originally Posted by wizard_hu_ View Post
    Yes, currently that is the way. However it is true for any re-usable component one develops for WP7. Shared 3rd-party libraries are what missing, or at least that is my understanding now. It is not specific to this particular use-case.
    Yes and I dont see that changing anytime soon. Microsoft made a clear bet on the new OS and wants to keep things under control. It has advantages and disadvantages. The main advantage is that you have a stable and secure OS. The disadvantage is that you dont have as much freedom as people may be looking for if they plan on use languages like Java, Pythos or C++.

    Still Microsoft and Nokia are listening to us, so if enough people requests a feature, they will at the very least take it into consideration and evaluate the possibility.

    Here is a good place to provide feedback to MS: http://windowsphone.uservoice.com

    Cheers

Similar Threads

  1. HOW TO RUN PYTHON SCRIPT ON WINDOWS MOBILE
    By tevele in forum Python
    Replies: 1
    Last Post: 2011-09-13, 16:11
  2. Replies: 4
    Last Post: 2010-06-15, 14:19
  3. Windows Mobile
    By rbaltazar in forum General Development Questions
    Replies: 3
    Last Post: 2009-11-10, 17:16
  4. Replies: 22
    Last Post: 2009-07-02, 07:57
  5. Install Python 3.0a5 on Windows Vista System
    By Hugh Pittman in forum Python
    Replies: 5
    Last Post: 2008-06-09, 11:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •