A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/131358.html below:

[Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5)

[Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5) [Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5)Ethan Furman ethan at stoneleaf.us
Mon Jan 13 03:34:11 CET 2014
On 01/12/2014 06:21 PM, Steven D'Aprano wrote:
> On Mon, Jan 13, 2014 at 01:03:15PM +1100, Steven D'Aprano wrote:
>
>> code speaks louder than words: http://www.pearwood.info/ethan_demo.py
>
> [...]
>
> Ethan refers to code like:
>
>>> template % ("срЃ".encode('cp1251').decode('latin-1'), 42, blob.decode('latin-1'))
>
> It occurs to me that I do exactly that in my demo code :-)

Well, at least you see the point I was trying to make, even if you don't agree.  :)

I apologize again for my typos that made it look like I had no idea what I was talking about.  ;)

--
~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