Serhiy Storchaka added the comment:

> I believe you need to add a bunch of __slots__ = () to various base classes 
> in the module, even though they lack member variables.

Done. Here is updated patch.

I don't think that IP addresses need weak references more than base types as 
integers or strings. Caching can be implemented without weak references (some 
caching already is used for networks), and I afraid that supporting weak 
references list will spent more memory than saved with caching.

----------
Added file: http://bugs.python.org/file37560/ipaddress_lightweight_2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23103>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to