[issue7170] subclasses of (some) built-in types are not weakref-able

Benjamin Peterson report at bugs.python.org
Tue Oct 20 05:22:55 CEST 2009


Benjamin Peterson <benjamin at python.org> added the comment:

The documentation should be rewritten for clarity then. The reason you
can't take weakrefs of those types is because they are implemented as
"varsized" objects, so there is no constant place to add a weakref list
in the memory layout of the objects.

----------
assignee:  -> georg.brandl
components: +Documentation -Interpreter Core
nosy: +georg.brandl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7170>
_______________________________________


More information about the Python-bugs-list mailing list