[issue23103] ipaddress should be Flyweight

Serhiy Storchaka report at bugs.python.org
Wed Dec 24 09:37:22 CET 2014


Serhiy Storchaka added the comment:

Here is a patch which makes IPv4Address and IPv6Address more lightweight (for other classes the size is not so important). It makes _version the class attribute and adds __slots__.

----------
keywords: +patch
resolution: wont fix -> 
stage:  -> patch review
status: closed -> open
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file37539/ipaddress_lightweight.patch

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


More information about the Python-bugs-list mailing list