• Olaf

    The error results from your lines not being well-aligned
    Unindenting the x=... and y=... lines should fix it

    posted in Pythonista read more
  • Olaf

    thanks. works after pip docutils

    posted in Pythonista read more
  • Olaf

    Okay, I'll try my luck at some parts of scene

    Well, no luck :-(
    pygenstub will not install (pip install) at my iPad with File Not Found Error.
    pip successfully downloads the .whl from pythonhosted.org, but on installing the wheel stops at an error
    Version 1.2 (current version is 1.4) installs

    posted in Pythonista read more
  • Olaf

    Very welcome initiative!

    I may contribute a module or two that I'm comfortable with.
    In the style guide, you state "no Union[] return annotations"; does that also imply "no Optional[] return annotations"? The Pythonista modules have some.

    posted in Pythonista read more
  • Olaf

    nice :-)

    posted in Pythonista read more
  • Olaf

    Congrats @omz!

    posted in Pythonista read more
  • Olaf

    Thanks! Downloading now

    posted in Pythonista read more
  • Olaf

    Great, thanks!

    posted in Pythonista read more
  • Olaf

    @omz, can you please let us know whether you plan on publishing a new version to TestFlight (or extend the validity of the current version) on time? Otherwise I'll need to fallback to the regular version from the AppStore

    posted in Pythonista read more
  • Olaf

    @omz wow, 3 * 365 * 50 > 50,000 Pythonistas, that's quite a global tribe!

    posted in Pythonista read more
  • Olaf

    @dgelessus thanks, mystery solved
    This applies both inside and outside triple quotes

    In long-press run doctest, the cwd differs differs from

    import doctest
    doctest.testmod()
    

    posted in Pythonista read more
  • Olaf

    Great! Also the PEP8.

    Although run with args clears the console now, doctest still doesn't, although that's merely inconsistent, not an issue, now doctest flags its outcomes in the source file.

    Also, doctest fails mysteriously on

    with open('test.txt', 'w') as f:
        pass
    

    with

    PermissionError: [Errno 1] Operation not permitted: 'test.txt'
    

    posted in Pythonista read more
  • Olaf

    I'd say, list of dict with ('class', 'View') as one of its items and 'frame' as another key would be pretty telling. But it wouldn't provide 100% absolute dead-sure unmistakable certainty, I'm afraid, so don't use this if trying to control a nuclear reactor or pacemaker

    posted in Pythonista read more
  • Olaf

    Both in Pythonista2 and Pythonista3 (latest betas) a long press to run (i.e. with args in 2; either with args or doctest in 3) does not clear the console if clear output before running is set in settings. I don't know whether this is by design, but (especially with verbose option; great option BTW) the doctest output tends to get longish, so this behaviour may lead to confusing output

    posted in Pythonista read more
  • Olaf

    Great news!

    posted in Pythonista read more
  • Olaf

    @dgelessus , I agree objc_util needs an __all__
    However, to exclude the imported modules, you don't necessarily need to enumerate; instead you can use inspect:

    {name for name in dir(objc_util)
          if not name.startswith("_") and
             not inspect.ismodule(getattr(objc_util, name))
    }
    

    posted in Pythonista read more
  • Olaf

    Interesting!
    Off topic:
    As Nichtmuttersprachler who learned German in school way before the 1998 Rechtschreibereform, I was totally unaware of this German discussion. Do people actually propose writing "zwai"?

    posted in Pythonista read more
  • Olaf

    @Webmaster4o, ah, the ambiguity of "it" ;-)
    I can have Pythonista as the main on the ¾ left-hand side of my iPad Air 2, and any (multitasking-capable) other app on the ¼ right-hand. Not the other way around, as only multitasking-capable apps can do so, and Pythonista isn't (as per previous post).
    However, your solution inside Pythonista is better as that remains if you return to the code, whereas the other way it disappears.

    posted in General Discussion read more
  • Olaf

    @Webmaster4o, I wasn't completely sure, so I checked. It's on Twitter and mentions split screen, not multitasking, making is less easy to find, but I found it via @viticci review

    posted in General Discussion read more
Internal error.

Oops! Looks like something went wrong!