[Python-Dev] PEP 460: allowing %d and %f and mojibake (original) (raw)
Emile van Sebille emile at fenx.com
Sun Jan 12 20:47:33 CET 2014
- Previous message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Next message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 01/12/2014 11:30 AM, Emile van Sebille wrote:
On 01/12/2014 09:26 AM, Paul Moore wrote:
Can you give an example of code that is nearly acceptable to you, which works in Python 2 and 3 today, and explain what improvements you would like to see to it in order to use it instead of waiting for a core change?
I'm not a developer, but I'm trying to understand how in v3 I accomplish what in v2 is easy: len(open('chars','wb').write("".join(map (chr,range(256)))).read())
my bad :
open('chars','wb').write("".join(map (chr,range(256)))) len(open('chars','rb').read()) 256
What's the v3 equivalent? Emile
- Previous message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Next message: [Python-Dev] PEP 460: allowing %d and %f and mojibake
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]