[Python-3000] the right way to open text files in P3K?
Mark Summerfield
mark at qtrac.eu
Fri Dec 14 08:05:42 CET 2007
Hi,
I was wondering if it is yet known what the right way to open text files
in P3K will be?
According to the docs the signature for open() is:
open(filename[, mode[, bufsize]])
Is that going to stay the same and default to UTF-8 if "b" is not in the
mode (or if no mode is specified) and bytes if "b" is present?
Or will the signature change to match the one provided by codecs?
codecs.open(filename, mode[, encoding[, errors[, buffering]]])
using the logic described above regarding mode?
Or some other way?
Thanks!
--
Mark Summerfield, Qtrac Ltd., www.qtrac.eu
More information about the Python-3000
mailing list