Message289811
| Author |
levkivskyi |
| Recipients |
docs@python, levkivskyi, ncoghlan, steven.daprano |
| Date |
2017年03月18日.13:39:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1489844346.41.0.468987184655.issue24796@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It looks like it is safe to just remove this line from docs. This code
>>> x = 1
>>> def f():
... global x
... del x
...
>>> f()
>>> x
Works as expected, i.e. raises NameError. (The same happens for nonlocal but with UnboundLocalError.) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年03月18日 13:39:06 | levkivskyi | set | recipients:
+ levkivskyi, ncoghlan, steven.daprano, docs@python |
| 2017年03月18日 13:39:06 | levkivskyi | set | messageid: <1489844346.41.0.468987184655.issue24796@psf.upfronthosting.co.za> |
| 2017年03月18日 13:39:06 | levkivskyi | link | issue24796 messages |
| 2017年03月18日 13:39:06 | levkivskyi | create |
|