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

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk fwvd...@gmail.com: Added file: http://bugs.python.org/file36273/codecsopen2a.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22128

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

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk fwvd...@gmail.com: Added file: http://bugs.python.org/file36274/codecsopen3a.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22128

[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 newline

[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

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

2014-08-03 Thread Frank van Dijk
Changes by Frank van Dijk fwvd...@gmail.com: Added file: http://bugs.python.org/file36235/codecsopen3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22128