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 bup
Recipients bup
Date 2017-05-18.20:57:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495141049.61.0.154560922326.issue30402@psf.upfronthosting.co.za>
In-reply-to
Content
k = 'k'
del [k]

That deletes the variable k from the local scope (even though it *looks* like it's trying to delete a list containing 1 element which is equivalent to the variable k).

But if using list literals to delete groups of objects is valid, then why not set literals?

del {k}
raises SyntaxError: can't delete literal

The better option imo would be to only allow tuples when del-ing groups of objects, but if list literals are allowed then set literals should be as well.
History
Date User Action Args
2017-05-18 20:57:29bupsetrecipients: + bup
2017-05-18 20:57:29bupsetmessageid: <1495141049.61.0.154560922326.issue30402@psf.upfronthosting.co.za>
2017-05-18 20:57:29buplinkissue30402 messages
2017-05-18 20:57:29bupcreate