Message243253
Sorry, I think I just misread this section. I was confused by the fact that del binds names like assignment does, so that the following tries to delete a local name and fails:
x = 1
def f():
del x
f()
In fact the documentation does say that there must be global statement in the block for del to delete a global name, so my bad. |
|
Date |
User |
Action |
Args |
2015-05-15 07:32:45 | jc13 | set | recipients:
+ jc13, r.david.murray, docs@python |
2015-05-15 07:32:45 | jc13 | set | messageid: <1431675165.06.0.588894626733.issue24187@psf.upfronthosting.co.za> |
2015-05-15 07:32:45 | jc13 | link | issue24187 messages |
2015-05-15 07:32:44 | jc13 | create | |
|