We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the following code (which rightly generates a SyntaxError):
>>> counter = 0 >>> def increment(): ... counter += 1 ... global counter
In the Python REPL, this generates the following error:
SyntaxError: name 'counter' is assigned to before global declaration
However, in Bpython, the following error occurs:
SyntaxError: incomplete input
The Bpython error appears to be incorrect to me?
The text was updated successfully, but these errors were encountered:
BTW, you get the same result while using the standard IDLE tool. See attachment.
Sorry, something went wrong.
No branches or pull requests
Consider the following code (which rightly generates a SyntaxError):
In the Python REPL, this generates the following error:
However, in Bpython, the following error occurs:
The Bpython error appears to be incorrect to me?
The text was updated successfully, but these errors were encountered: