[issue22128] patch: steer people away from codecs.open

2021-04-16 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22128] patch: steer people away from codecs.open

2021-03-17 Thread Irit Katriel
Irit Katriel added the comment: Since Martin corrected the docs in issue 19548 for python 3, and python 2 is no longer relevant, I believe this can be closed. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> 'codecs' module docs improvements ___

[issue22128] patch: steer people away from codecs.open

2015-01-02 Thread Martin Panter
Martin Panter added the comment: Just pointing out there is a patch for Issue 19548 for Python 3 which also adds a pointer to the builtin open() function and updates the codecs.open() caveats. That issue doesn’t touch Python 2 though. -- nosy: +vadmium

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think it's useful to tell people: > * use codecs.open() on Python 2.4, 2.5, 2.6 > * use io.open() on Python 2.7 (io is too slow on 2.6 to be a real alternative > to codecs.open()) > * use open() on Python 3.4+ Instead we can tell them to use io.open()

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36274/codecsopen3a.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36273/codecsopen2a.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue22128] patch: steer people away from codecs.open

2014-08-04 Thread Frank van Dijk
Frank van Dijk added the comment: > Marc-Andre Lemburg added the comment: > > Pointing people to io.open() as alternative to codecs.open() is a good idea, > but that doesn't make codecs.open() less useful. > > The reason why codecs.open() uses binary mode is to avoid issues with > automatic n

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Pointing people to io.open() as alternative to codecs.open() is a good idea, but that doesn't make codecs.open() less useful. The reason why codecs.open() uses binary mode is to avoid issues with automatic newline conversion getting in the way of the file'

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread STINNER Victor
STINNER Victor added the comment: See also my PEP 400: http://legacy.python.org/dev/peps/pep-0400/ -- ___ Python tracker ___ ___ Pytho

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +doerwalter, haypo, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36235/codecsopen3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Frank van Dijk
New submission from Frank van Dijk: stackoverflow.com has a zillion answers recommending the use of codecs.open() as a unicode capable drop in replacement for open(). This probably means that there is still a lot of code being written that uses codecs.open(). That's bad thing because of codecs