
4 Nov
2009
4 Nov
'09
8:12 p.m.
Raymond Hettinger wrote:
Summarizing my opposition to a new set method:
- there already are at least two succinct ways to get the same effect
- those ways work with any container, not just sets
- set implementations in other languages show that this isn't needed.
- there is value to keeping the API compact
- isn't needed for optimization (selecting the same value in a loop
makes no sense) 6) absence of real-world code examples that would be meaningfully improved
I would be happy to add an example to the docs so that this thread can finally end.
Please do!
Eric.