[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3
Antoine Pitrou
solipsis at pitrou.net
Fri Mar 28 12:06:40 CET 2014
More information about the Python-Dev mailing list
Fri Mar 28 12:06:40 CET 2014
- Previous message: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3
- Next message: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 27 Mar 2014 19:09:58 -0700 Ethan Furman <ethan at stoneleaf.us> wrote: > On 03/27/2014 03:10 PM, Greg Ewing wrote: > > R. David Murray wrote: > >> I've done the 'landmark' thing as well, in the string context; that can be > >> very useful when doing incremental test driven development. (Granted, you > >> could do that with __bytes__; > > > > Can't you do it more easily just by wrapping ascii() > > around the argument? That seems sufficient for debugging > > purposes to me. > > The problem there is ascii() still returns unicode (okay, okay, str), so you still have to encode it. ascii(my_object).encode() Regards Antoine.
- Previous message: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3
- Next message: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list