Forum Archive

Pythonista 3 300005 bug

disorientedp

@omz There is currently a bug in the latest beta of Pythonista 3 (I haven't tried 2) where text doesn't always change color in the console when the theme is Gold. Sometimes, the text shows up as black, which is difficult to make out on an almost-black background. This problem gets fixed when I change to a different theme and back.
console screenshot

JonB

here is another bug in latest 30 beta

Typing any multiline items in console reults in

SyntaxError: unexpected EOF while parsing

For example, a def, class, for loop... after the first line, the console interpreter doesn't handle the end of line

omz

@JonB I mentioned that as a known issue a while back (first beta, I think), it's still on my todo list.

harvyjackk

The SyntaxError: unexpected EOF while parsing means that the end of your source code was reached before all code blocks were completed. A Python code block starts with a statement like for i in range(100): and requires at least one line afterwards that contains code that should be in it.

Also, this can simply mean you are missing or have too many parenthesis. For example this has too many, and will result in unexpected EOF.