A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-March/133632.html below:

Adding % formatting to bytes and bytearray -- Final, Take 3

[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3Ethan Furman ethan at stoneleaf.us
Fri Mar 28 03:09:58 CET 2014
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.

--
~Ethan~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4