[issue15559] Bad interaction between ipaddress addresses and the bytes constructor

Roundup Robot report at bugs.python.org
Sun Aug 5 10:20:36 CEST 2012


Roundup Robot added the comment:

New changeset 5abea8a43f19 by Nick Coghlan in branch 'default':
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.
http://hg.python.org/cpython/rev/5abea8a43f19

----------
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list