[Python-Dev] cpython: Close #15559: Implementing index creates a nasty interaction with the bytes (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Aug 5 15:00:04 CEST 2012
- Previous message: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): Make TextIOWrapper's documentation clearer by copying the newline argument's
- Next message: [Python-Dev] cpython: Close #15559: Implementing __index__ creates a nasty interaction with the bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 5 Aug 2012 10:20:36 +0200 (CEST) nick.coghlan <python-checkins at python.org> wrote:
http://hg.python.org/cpython/rev/5abea8a43f19 changeset: 78426:5abea8a43f19 user: Nick Coghlan <ncoghlan at gmail.com> date: Sun Aug 05 18:20:17 2012 +1000 summary: 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.
index, as the name implies, allows instances to be used as sequence indices, which does sound like a weird thing to serve as for an IP address :-)
Regards
Antoine.
-- Software development and contracting: http://pro.pitrou.net
- Previous message: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): Make TextIOWrapper's documentation clearer by copying the newline argument's
- Next message: [Python-Dev] cpython: Close #15559: Implementing __index__ creates a nasty interaction with the bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]