This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbromberger
Recipients sbromberger
Date 2014-12-23.09:57:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419328646.72.0.916490552999.issue23103@psf.upfronthosting.co.za>
In-reply-to
Content
ipaddress.ip_address instances should be flyweight. There's really no reason to make them mutable:

>>> a = ipaddress.ip_address("10.1.2.3")
>>> b = ipaddress.ip_address("10.1.2.3")
>>> id(a)
140066533772368
>>> id(b)
140066504622544

Especially with IPv6 and large numbers of addresses, it would be helpful not to have separate instances with the same underlying properties.
History
Date User Action Args
2014-12-23 09:57:26sbrombergersetrecipients: + sbromberger
2014-12-23 09:57:26sbrombergersetmessageid: <1419328646.72.0.916490552999.issue23103@psf.upfronthosting.co.za>
2014-12-23 09:57:26sbrombergerlinkissue23103 messages
2014-12-23 09:57:26sbrombergercreate