[issue8757] Automatic set-to-frozenset conversions not thread-safe

Raymond Hettinger report at bugs.python.org
Wed Aug 4 20:36:01 CEST 2010

Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I didn't disagree with you.  The swap bodies implementation technique is not expected and is exploitable in a number of ways.

What outcome to you want?  Eliminate the implicit set-to-frozenset conversion feature; introduce a non-mutating version that copies the entire set; or just document that the automatic conversion is non-atomic, temporarily mutating, and not thread-safe?

Personally, I've never been convinced of the value of this feature and would not feel sad to have it removed.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list