omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Pythonista for Python 3.x.

    Pythonista
    40
    99
    203905
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D4t4Wr4ngl3r231
      D4t4Wr4ngl3r231 last edited by

      Sadly it is a poor second to Pythonista in terms of stability, usability, functionality, documentation, etc.

      I gave up on it once I tried Pythonista ;-)

      Noob to Python that I am. I assumed that 3.3 would be better to learn than 2.7. After asking around it appears that 2.7 is just what I need.

      1 Reply Last reply Reply Quote 1
      • ccc
        ccc last edited by ccc

        Edit: Fixed in Pythonista3 version 3.0 (300001) (currently in beta) which is Python 3.5.1.

        I also echo the request to move on up to Python 3.3.1...

        Also, how about Python 2.7.3 instead of the current 2.7.0.

        import sys
        print(sys.version_info)
        # ==> sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0)
        
        print(sys.version)
        # ==> 2.7 (r27:82500, Feb 18 2013, 15:52:51) 
        # ... [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.24)]
        

        UPDATE: Pythonista v1.4 now brings the Python version up to Python v2.7.5 which is the same version of Python installed by default on machines running Mac OS X Mavericks.

        1 Reply Last reply Reply Quote 1
        • omz
          omz last edited by

          I agree about 2.7.3, I'm a little behind with that, though I don't think there are a lot of tangible benefits to get from that upgrade. Switching to Python 3.x is a lot more problematic because it's not backward-compatible. If I were to switch the current app to 3.x, a lot of scripts would simply not work anymore. There are also third-party libraries (like PIL, which Pythonista includes) that aren't yet compatible with Python 3.

          1 Reply Last reply Reply Quote 0
          • rsnz208
            rsnz208 last edited by

            I would also like a move to Python 3, because that is what we are moving to as our introductory teaching language and it would be fantastic to be able to recommend Pythonista to students. At the moment 2.7 is adequate. I don't know how <a href=http://python-imaging.github.com/Pillow/>Pillow</a> would fit in as a replacement for PIL.

            1 Reply Last reply Reply Quote 0
            • ccc
              ccc last edited by

              At this point 2.7.3 should not be your target because Python 2.7.4 was due to be released 10 days ago: http://www.python.org/dev/peps/pep-0373/#release-schedule

              1 Reply Last reply Reply Quote 1
              • eliskan175
                eliskan175 last edited by

                I don't want to switch to Python 3 simply because I have been practicing Python 2.7 for a long while, but if necessary I will adjust..

                1 Reply Last reply Reply Quote 0
                • Dalorbi39
                  Dalorbi39 last edited by

                  I'm a bit confused, i thought the majority of people were still on 2.7, whats better about 3?

                  1 Reply Last reply Reply Quote 0
                  • oefe186
                    oefe186 last edited by

                    Python 3 is the better language, however many libraries and tools are still not compatible with it. Fortunately it seems to get traction now.

                    1 Reply Last reply Reply Quote 0
                    • Dalorbi39
                      Dalorbi39 last edited by

                      is there any reason to it being better, as in is it faster, more powerful has clearer syntax?

                      1 Reply Last reply Reply Quote 0
                      • oefe186
                        oefe186 last edited by

                        Improved / cleaned up syntax, better string handling (no string vs. unicode, and a separate bytes type for binary data), views and iterators instead of lists in many places, integer types cleaned up, standard library cleaned up... You get the idea.

                        All this clean up not only means that the language is easier to learn, it also makes future development of the language easier, as the developer don't have to bother with legacy stuff anymore.

                        1 Reply Last reply Reply Quote 0
                        • ccc
                          ccc last edited by

                          06 April 2013 -- Python 2.7.4 & Python 3.2.4 & Python 3.3.1
                          From: http://www.python.org ...

                          Saturday, April 6
                          Python 2.7.4
                          Python 3.2.4
                          Python 3.3.1

                          Hi Ole,

                          Given that tomorrow is such a big day for Python releases, it triggers the following questions? Just out of curiosity, how much work is it for you to convert a new Python release into a new version of Pythonista? Is it a simple (automated) process or is it cumbrsome and time consuming? Do you just drop cPython into your bigger XCode project and then compile and go? Is there a lot of debugging to do each time? Do you need to apply patches to a bunch of modules to shoehorn them into the iOS?

                          Curious minds want to know... Best of luck on upgrading us to 2.7.4. CCC

                          1 Reply Last reply Reply Quote 1
                          • lucasoldaini100
                            lucasoldaini100 last edited by

                            I was wondering if there's some technical/political reason not to include both Python 2.7 and 3.3. You could provide a switch in settings (set as default on 2.7)

                            1 Reply Last reply Reply Quote 0
                            • omz
                              omz last edited by

                              @ccc It's mostly a manual process unfortunately, and as you're probably aware, I'm a little behind with the Python releases, but I hope to get 2.7.4 integrated relatively soon (not while it's still a release candidate though).

                              @lucasoldaini That's technically not possible. One of the restrictions of iOS apps is that everything has to be a single binary. Compiling multiple versions of Python into a single binary would lead to lots of duplicate symbols etc.

                              1 Reply Last reply Reply Quote 1
                              • ccc
                                ccc last edited by

                                The three releases are now final on python.org

                                1 Reply Last reply Reply Quote 0
                                • lucasoldaini100
                                  lucasoldaini100 last edited by

                                  @omz ah, I see. I had no idea (I've never done any iOS development).
                                  Well, if you ever decide to release a separate version of pythonista for python 3, I'd buy it in a hearthbeat.

                                  1 Reply Last reply Reply Quote 0
                                  • ccc
                                    ccc last edited by

                                    @omz What are your thoughts on registering on http://www.gittip.com ? This is not the first that folks have offered to fund specific areas of development. What do you view as the pros and cons of this approach to folks voting for things that are important to them?

                                    1 Reply Last reply Reply Quote 0
                                    • omz
                                      omz last edited by

                                      @pdxmisfit That's a possibility I'm thinking about. My primary concern is that it would result in two versions of Pythonista that would be incompatible with each other, which could be very confusing for new users ("which one should I get?"), and potentially annoying when sharing iOS-specific scripts that might be only compatible with one or the other version. To someone not familiar with the compatibility issues of Python 2 vs 3, it could also look like a cash-grab to have two nearly-identical versions of the same app.

                                      There are technical issues too of course (e.g. some of the bundled third-party modules aren't compatible with Python 3), but this is really the main problem that I see. Your offer is very generous, and I appreciate the gesture, but funding isn't really a factor here.

                                      @ccc I think platforms like gittip or flattr are more appropriate for open source projects. Voting on features (especially with your wallet) always carries the risk of missing expectations (because software development is often unpredictable), and as I said, I don't really need the funding.

                                      1 Reply Last reply Reply Quote 0
                                      • ccc
                                        ccc last edited by

                                        Python 2.7.6 release candidate 1 and Python 3.3.3 release candidate 1 were posted last Sunday to fix a pile of bugs but principally to solve the tkinter issues on the Mac which become more evident because <b>Mac OS X Mavericks installs Python 2.7.5</b> by default on all Macs.

                                        Given that Python PEP 373 projects that Python 2.7.9 will be released in May 2015 and that Python PEP 404 makes clear that there will never be a Python v2.8, there are <b>less than two years of Python 2 bug fixes</b>.

                                        Even the Python 2 or Python 3 page has changed in favor of encouraging people to move now to Python 3.

                                        Given all the progress that the community has made towards Python 3, it would be good to see Pythonista move forward to Python 3 as well.

                                        print(sys.version_info)  # 2.7.0 in Pythonista v1.3
                                        

                                        UPDATE: Pythonista v1.4 now brings the Python version up to Python v2.7.5 which is the same version of Python installed by default on machines running Mac OS X Mavericks.

                                        1 Reply Last reply Reply Quote 0
                                        • ungaa
                                          ungaa last edited by

                                          Pythonista should eventually move over to Python 3. It has improved syntax, new features, and is the current standard. Python 2.7 will be phased out eventually. The only technical reason you mentioned, that lack of PIL on Python 3, is not much of a reason at all. PIL is essentially obsolete now. The Python community is largely moving to better maintained backwards compatible forks of PIL, such as Pillow, which has more features, fewer bugs, and is fully compatible with Python 3.

                                          With that said, there is no urgency in moving Pythonista over to Python 3. I would welcome two separate versions of Pythonista for Python 2 and Python 3, but it isn't really necessary yet.

                                          What I would really appreciate soon is a new version of Pythonista that includes Python 2.7.5 and is compatible with iOS 7. There are many bugs that significantly impair the usability of Pythonista on iOS 7, and roughly 3/4 of all iOS users are running iOS 7 now. If funding is an issue (though it doesn't seem to be), I and likely many other Pythonista users would be willing to help out.

                                          1 Reply Last reply Reply Quote 1
                                          • Betlhan
                                            Betlhan last edited by

                                            Hi, I've purchased Pythonista today. I got to say it's the best Python IDE I've ever seen on iOS. However I'm very disappointed to see that it doesn't support Python 3. Is there something we as a community can do to help you update the current Pythonista app to Python 3?

                                            I'm also willing to invest in any way that I can if the current app gets updated and not a new app released just for Python 3. As I do have a strong requirement for Python 3.

                                            Python 3 is the future, Python 2 is phasing out there's no doubt about it.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors