[Python-Dev] Can't have unbuffered text I/O in Python 3.0? (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Fri Dec 19 23🔞14 CET 2008
- Previous message: [Python-Dev] Can't have unbuffered text I/O in Python 3.0?
- Next message: [Python-Dev] Can't have unbuffered text I/O in Python 3.0?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Brett Cannon wrote:
Notice how the exception specifies test I/O cannot be unbuffered. This restriction does not apply to bytes I/O. Simply open it as 'wb' instead of 'w' and it works.
s/test/text/ :)
(For anyone else that is like me and skipped over the exception detail on first reading, thus becoming a little confused...)
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message: [Python-Dev] Can't have unbuffered text I/O in Python 3.0?
- Next message: [Python-Dev] Can't have unbuffered text I/O in Python 3.0?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]