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.


    Python 3.x Progress Update

    Pythonista
    56
    395
    526506
    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.
    • OI
      OI last edited by

      No shortcuts in V3? They are not working for me, thanks

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

        Doing the 2to 3 conversion with that file

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

          • If you are in the Console and the press ? to get the Online Help
          • The press the top left button to open the split screen (the shaded one)
          • Then the right portion of the screen (Console) the fonts at the top/search bar and Help title "Overview" will all be overlapped and messed up
          • If you try to press again the split screen button (shaded one) you get the pull down menu for Overview
          1 Reply Last reply Reply Quote 0
          • filippocld
            filippocld last edited by

            Also, using appex.get_url fils because there is not urlparse

            Webmaster4o 1 Reply Last reply Reply Quote 1
            • Webmaster4o
              Webmaster4o @filippocld last edited by

              @filippocld This has been mentioned elsewhere.

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

                Congrats on finally getting this project done. I just signed up to beta test and would like to offer help specifically with the template and any feature that directly speaks to users who wish to use Pythonista to write their own Apps for the AppStore.

                From a feature perspective:

                1. I would like to see the template kept in sync with the build so that developers would get bug fixes as soon as any other user. I would love to hear about why this is such a problem but can surmise that the template project is currently "hand built" or requires a great deal of manual work for some reason. Let's fix that once and for all.

                2. I would like to hear about any progress that has been made in supporting integration with third party projects like OpenCV. I have noticed that other development environments support "plug-ins" that seem to be shared libraries and manage to make it through the App/AppStore process just fine. I have no idea yet how they are accomplishing this but I would be happy to research this and report back if we could make it a project to get this done for Pythonista.

                I have been thinking a lot about the template and it purpose and future and believe that it is actually a product all by itself. It needs to have a defined purpose and a set of use cases and then offered in the AppStore for a fair price for what it delivers. For anyone using it to do professional level App development you should be able to charge a hefty price and look at paying someone to maintain it for you.

                I am going to stop writing now. This is getting too off topic.

                UPDATE: I have been syncing up with all the posts from the last 4 days and notice that the template was updated on GitHub at the same time as the 3.x beta - so part of my question may already be answered there. I won't post again until I actually install the new beta and download that template.

                1 Reply Last reply Reply Quote 2
                • dgelessus
                  dgelessus last edited by dgelessus

                  @omz

                  • All the built-in functions and types seem to be missing docstrings and signature info. In Pythonista 2, help(tuple) would print at least the docstrings, in Pythonista 3 only the method and attribute names are shown. Method signature info for built-in functions (part of the "argument clinic", which I think is an overhaul of function argument processing in C code) is a new feature in Python 3, which would be very nice to have.
                  • Using an external Apple wireless keyboard, when typing dead keys (such as ^ or ~ or ` or ´) they appear once too often. For example, if I type ~-space, I get ~~, and when I type ~n I get ~ñ. I've tried many combinations and there is no practical way to suppress the double character.
                  • The Pythonista 3 share sheet action is elegantly named "PythonistaAction3".
                  1 Reply Last reply Reply Quote 1
                  • wnMark
                    wnMark last edited by wnMark

                    I tried to run some programs with 3000001, but I failed in some cases.

                    After fixing the errors, I tried to run a program, but it didn´t start and I also get no error message.

                    Then I tried to provocate some errors and deleted some double points and after I get the error hint, I added these double points back. And so I go down in the listing and suddenly the program starts.

                    Some hints?

                    wnMark 1 Reply Last reply Reply Quote 0
                    • mikeyleo
                      mikeyleo last edited by

                      I've been playing around with the beta and I've been trying to get one of my programs to run. It seems to be getting hung up when I use the text routine. I get a NameError of name 'unicode' is not defined. The error occurs in the render_text routine. I don't know if this is a bug or I have to change my code to work with the PIL library.

                      Webmaster4o 1 Reply Last reply Reply Quote 0
                      • Webmaster4o
                        Webmaster4o @mikeyleo last edited by

                        @mikeyleo What's the text routine? unicode is a Python 2 thing.

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

                          @mikeyleo @Webmaster4o Sounds like a bug in the scene module, I'll look into it.

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

                            @Webmaster4o about your wish list for apps...

                            Yeah, I have had both of those apps that you want. Textastic is great, and Codea is AMAZING.

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

                              If I create in Pythonista3 a new file in the Pythonista 2 folder, the app is crashing. The same if I try in Pythonista 2 in Pythonistas3 folder., Maybe I am not allowed to do this?

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

                                Is there a way to do a pip install with Pythonista 3 as yet?

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

                                  @Phuket2 Go to https://pypi.python.org/ and copy the Python 3 source download link for the package you want, download it in Pythonista 2 using stash, extract the archive and move the module file or package folder into Pythonista 3's site-packages. It's by far not as nice as using stash's pip, but Pythonista 3 is literally a few days old, times are going to be a little rough :)

                                  Phuket2 2 Replies Last reply Reply Quote 0
                                  • Phuket2
                                    Phuket2 @dgelessus last edited by

                                    @dgelessus , thanks. I sort of thought you could do that also. It was not urgent otherwise I would have tried that way.
                                    Have to say the folder system going on between the 2 apps is pretty cool.
                                    IN Pythonista 3, I just added a script to the tool menu

                                    import editor, clipboard
                                    
                                    clipboard.set(editor.get_path())
                                    

                                    Just nice simple way to get file path names from inside the 2 dir. Simple, but good at this early point

                                    1 Reply Last reply Reply Quote 0
                                    • Phuket2
                                      Phuket2 @dgelessus last edited by

                                      @dgelessus , look I am very new to this. But from searching on the web it appears to me that pip is included in the Python dist and has been for sometime. Not 2.7 but after.

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

                                        @omz signed up for the beta! Can't wait to get my existing code converted over to Python 3!

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

                                          @omz
                                          I am aware that @dgelessus has reported issue for sys.exit. However my experience is a bit different. The sys.exit now seems to generate a KeyboardInterupt instead of the SystemExit exception. The code can be traced back to line 48 of pythonista3_startup.py, in _exitfunc.

                                          If possible, I would like to have exit still generate SystemExit in future revision.

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

                                            @Phuket2 pip is included in almost every normal Python distribution, but that doesn't make it part of the standard library. Besides, pip is written for normal computers and doesn't run well in the iOS/Pythonista sandbox. See https://github.com/dgelessus/fistutils for my less-than-perfect attempt to make distutils/setuptools/pip work on Pythonista.

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