R. David Murray added the comment:

If ipaddress objects are already immutable, it seems to me that having a 
registry that makes it so there is only one instance per ip value isn't a crazy 
idea.  I've written such code in other contexts and it's not complicated.  We 
have caching of identifier strings and "common" integer constants for a 
reason...this seems a logical extension of that policy in the realm of a 
specific library data type.

The opposite argument is that it may be better left up to the application that 
has to handle lots of ips to do the caching according to what it knows to be an 
optimum pattern.  So consider me +0 on the idea.

----------

_______________________________________
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