[issue7224] One obvious way to do interning

Alexander Belopolsky report at bugs.python.org
Wed Oct 28 17:06:29 CET 2009

Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I agree, _PySet_Add name can be improved upon, but I don't want to paint 
this particular bikeshed until it is clearer what if anything will be done 
with this idea.  If we add PySet_Intern API, then it would be natural to 
expose it as set.intern rather than changing how set.add works.  On the 
other hand, if set.add grows a return value, then it would make sense to 
eventually change PySet_Add to conform.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list