Message117731
This issue is also discussed on Stackoverflow: http://stackoverflow.com/q/3828611/320057
The following code
def top(deck):
pass
def b():
global deck
results in the error "SyntaxError: name 'deck' is local and global" (slightly different for 3.x). This is strange by itself, and is caused by special namespace behaviour attached to the "top" symbol. Renaming the "top" function actually solves the error!
More technical details are in the stackoverflow link above. |
|
Date |
User |
Action |
Args |
2010-09-30 12:17:41 | iivvoo | set | recipients:
+ iivvoo |
2010-09-30 12:17:41 | iivvoo | set | messageid: <1285849061.79.0.383989167237.issue9997@psf.upfronthosting.co.za> |
2010-09-30 12:17:40 | iivvoo | link | issue9997 messages |
2010-09-30 12:17:40 | iivvoo | create | |
|