[Python-Dev] sys.intern should work on bytes

PJ Eby pje at telecommunity.com
Fri Sep 20 18:50:44 CEST 2013


On Fri, Sep 20, 2013 at 9:54 AM, Jesus Cea <jcea at jcea.es> wrote:
> Why str/bytes doesn't support weakrefs, beside memory use?

The typical use case for weakrefs is to break reference cycles, but
str and bytes can't *be* part of a reference cycle, so outside of
interning-like use cases, there's no need for weakref support there.


More information about the Python-Dev mailing list