This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jc13
Recipients docs@python, jc13, r.david.murray
Date 2015-05-15.07:32:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431675165.06.0.588894626733.issue24187@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-05-15 07:32:45jc13setrecipients: + jc13, r.david.murray, docs@python
2015-05-15 07:32:45jc13setmessageid: <1431675165.06.0.588894626733.issue24187@psf.upfronthosting.co.za>
2015-05-15 07:32:45jc13linkissue24187 messages
2015-05-15 07:32:44jc13create