Message233038
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. |
|
Date |
User |
Action |
Args |
2014-12-23 09:57:26 | sbromberger | set | recipients:
+ sbromberger |
2014-12-23 09:57:26 | sbromberger | set | messageid: <1419328646.72.0.916490552999.issue23103@psf.upfronthosting.co.za> |
2014-12-23 09:57:26 | sbromberger | link | issue23103 messages |
2014-12-23 09:57:26 | sbromberger | create | |
|