[issue23103] ipaddress should be Flyweight

Josh Rosenberg report at bugs.python.org
Tue Dec 23 12:49:43 CET 2014


Josh Rosenberg added the comment:

What is your proposal? WeakValueDictionary mapping raw bytes object to single instance of ipaddress that is queried from ipaddress's __new__? No built-in has quite that extensive a level of caching and aggressive deduplication to my knowledge.

----------
nosy: +josh.r

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


More information about the Python-bugs-list mailing list