-
-
Notifications
You must be signed in to change notification settings - Fork 252
Open
Labels
Description
Consider the following code (which rightly generates a SyntaxError):
>>> counter = 0
>>> def increment():
... counter += 1
... global counterIn 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?