[Python-ideas] set.add() return value
greg.ewing at canterbury.ac.nz
Wed Feb 18 03:58:19 CET 2009
Bruce Leban wrote:
> That's a good reason to *not* support a test/change operation in regular
> sets as it may lead people to think (falsely) that it provide some kind
> of concurrency protection.
Well, perhaps it should provide concurrency protection.
If it's implemented in C with the GIL held, it probably
wouldn't be hard to make that guarantee.
More information about the Python-ideas