[Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5) (original) (raw)
Ethan Furman ethan at stoneleaf.us
Mon Jan 13 03:34:11 CET 2014
- Previous message: [Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5)
- Next message: [Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/ethandemo.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
- Previous message: [Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5)
- Next message: [Python-Dev] Smuggling bytes into text (was Re: RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]