Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork252
Open
Labels
Description
Consider the following code (which rightly generates a SyntaxError):
>>>counter=0>>>defincrement():...counter+=1...globalcounter
In the Python REPL, this generates the following error:
SyntaxError: name 'counter' is assigned to before global declarationHowever, in Bpython, the following error occurs:
SyntaxError: incomplete inputThe Bpython error appears to be incorrect to me?