Best practice way to open files in Python 2.6+?
python at bdurham.com
python at bdurham.com
Tue Jul 27 10:33:06 EDT 2010
What is the best practice way to open files in Python 2.6+
It looks like there are at least 3 different ways to open files:
- built-in open()
- io.open()
- codecs.open()
It seems like io.open() combines the best of the built-in open()
and the codecs open(). Am I missing any obvious drawbacks to
using io.open() except for backwards compatibility?
Thank you,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100727/6013bdf2/attachment.html>
More information about the Python-list
mailing list