del and sets proposal
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Fri Oct 3 04:29:47 EDT 2008
On Thu, 02 Oct 2008 22:27:04 -0500, Larry Bates wrote:
> Maybe dictionaries should have had a .remove method then things would be
> more consistent?
But why should sets be consistent with dictionaries? There are a few
similarities, but also differences.
Personally, I'd rather see dictionaries grow methods like
symmetric_difference, union, etc. than worry about whether you use del or
remove to remove elements from a set.
--
Steven
More information about the Python-list
mailing list