Message293942
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. |
|
Date |
User |
Action |
Args |
2017-05-18 20:57:29 | bup | set | recipients:
+ bup |
2017-05-18 20:57:29 | bup | set | messageid: <1495141049.61.0.154560922326.issue30402@psf.upfronthosting.co.za> |
2017-05-18 20:57:29 | bup | link | issue30402 messages |
2017-05-18 20:57:29 | bup | create | |
|