[issue23103] ipaddress should be Flyweight

Josh Rosenberg report at bugs.python.org
Wed Dec 24 18:55:59 CET 2014


Josh Rosenberg added the comment:

Serhiy: I believe you need to add a bunch of __slots__ = () to various base classes in the module, even though they lack member variables. Every link in the inheritance chain must declare __slots__, or the child class will have __dict__ and __weakref__.

----------

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


More information about the Python-bugs-list mailing list