]> granicus.if.org Git - python/commit
Close #15559: Implementing __index__ creates a nasty interaction with the bytes const...
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 5 Aug 2012 08:20:17 +0000 (18:20 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 5 Aug 2012 08:20:17 +0000 (18:20 +1000)
commite0c3f5edc0f20cc28363258df501758c1bdb1ca7
tree641a52e5a0df70f91db0d7057e6680d1f286f662
parent37d3ff14871a25429fb93167aeace0589be45426
Close #15559: Implementing __index__ creates a nasty interaction with the bytes constructor. At least for 3.3, ipaddress objects must now be explicitly converted with int() and thus can't be passed directly to the hex() builtin.
Lib/ipaddress.py
Lib/test/test_ipaddress.py