[Python-3000] New io system and binary data (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sun Sep 23 20:48:20 CEST 2007
- Previous message: [Python-3000] New io system and binary data
- Next message: [Python-3000] New io system and binary data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The problem here seems to be that this isn't currently well documented. I've got no objection to using the buffer attribute...
Ok, then it seems you missed the obvious way: Open the file in binary mode ('rb' or 'wb') if you want to read or write bytes. It has always been that way in Python; the only change now is that it matters on systems other than Windows.
Regards, Martin
- Previous message: [Python-3000] New io system and binary data
- Next message: [Python-3000] New io system and binary data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]