[issue8796] Deprecate codecs.open()

2018-02-10 Thread Me01100Nobody
Change by Me01100Nobody : -- nosy: +Me01100Nobody ___ Python tracker ___ ___

[issue8796] Deprecate codecs.open()

2017-06-27 Thread STINNER Victor
STINNER Victor added the comment: I proposed this idea multiple times, but it's backward incompatible and more generally seen as a bad issue, since there are very specific use cases for codecs.open(). So I just close the issue. -- resolution: -> rejected stage: needs patch ->

[issue8796] Deprecate codecs.open()

2015-01-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___

[issue8796] Deprecate codecs.open()

2014-01-05 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

[issue8796] Deprecate codecs.open()

2013-03-24 Thread Ezio Melotti
Ezio Melotti added the comment: I suggest to deprecated codecs.open() in 3.4, and possibly remove it in a later release. The implementation shouldn't be changed to use the builtin open(), but the deprecation note should point to it, and possibly mention the shortcomings of codecs.open().

[issue8796] Deprecate codecs.open()

2013-03-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

[issue8796] Deprecate codecs.open()

2011-05-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Roundup Robot wrote: Roundup Robot devnull@devnull added the comment: New changeset 3555cf6f9c98 by Victor Stinner in branch 'default': Issue #8796: codecs.open() calls the builtin open() function instead of using

[issue8796] Deprecate codecs.open()

2011-05-27 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4d2ddd86b531 by Victor Stinner in branch 'default': Revert my commit 3555cf6f9c98: Issue #8796: codecs.open() calls the builtin http://hg.python.org/cpython/rev/4d2ddd86b531 -- ___ Python

[issue8796] Deprecate codecs.open()

2011-05-26 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3555cf6f9c98 by Victor Stinner in branch 'default': Issue #8796: codecs.open() calls the builtin open() function instead of using http://hg.python.org/cpython/rev/3555cf6f9c98 -- nosy: +python-dev

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

[issue8796] Deprecate codecs.open()

2011-05-24 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- title: Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter - Deprecate codecs.open() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796

[issue8796] Deprecate codecs.open()

2011-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If there are use cases of Stream{Reader,Writer} which are not covered by TextIOWrapper, it would be nice to know so that we can improve TextIOWrapper. After all, there should be one obvious way to do it ;) By the way, something interesting

[issue8796] Deprecate codecs.open()

2011-05-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: deprecate_codecs.patch: Deprecate open(), StreamReader, StreamWriter, StreamReaderWriter, StreamRecord and EncodedFile() of the codec module. Use the builtin open() function or io.TextIOWrapper instead. EncodedFile() and

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: Deprecate codecs.open() - Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- status: - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Closing the ticket again. We still need codecs.open() to support applications that target Python 2.x and 3.x. You can reopen it after Python 2.x has been end-of-life'd. -- resolution: - postponed status: open - closed

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le lundi 23 mai 2011 à 16:11 +, Marc-Andre Lemburg a écrit : We still need codecs.open() to support applications that target Python 2.x and 3.x. io.TextIOWrapper exists in Python 2.6 and 2.7, and 2to3 can simply replace

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Correcting the title: this ticket is about codecs.open(), not StreamRead and StreamWriter, both of which are essential parts of the Python codec machinery and are needed to be able to implement per-codec implementations of codecs which

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: TextIOWrapper() is conceptually something completely different. It's more something like StreamReaderWriter(). That's a rather strange assertion. Can you expand? TextIOWrapper supports read-only, write-only, read-write, unseekable and seekable

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: TextIOWrapper() is conceptually something completely different. It's more something like StreamReaderWriter(). That's a rather strange assertion. Can you expand?

[issue8796] Deprecate codecs.open()

2011-05-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Python 3.2 has been published. Can we start deprecating StreamWriter and StreamReader in Python 3.3 (to remove them from Python 3.4)? The doc should

[issue8796] Deprecate codecs.open()

2011-05-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This ticket is about deprecating codecs.open(), not about StreamWriter and StreamReader. Right. I may open a different issue. Can we start by modifying codecs.open() to use the builtin open() (to reuse TextIOWrapper)? I'm -1

[issue8796] Deprecate codecs.open()

2011-05-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Python 3.2 has been published. Can we start deprecating StreamWriter and StreamReader in Python 3.3 (to remove them from Python 3.4)? The doc should explain how to convert code using codecs into code using the io module (it should

[issue8796] Deprecate codecs.open()

2011-05-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- status: closed - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___

[issue8796] Deprecate codecs.open()

2011-05-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ... once most Linux distributions have moved to Python 2.6 Debian uses Python 2.6 by default since it's last stable release (Squeeze). I think that it was the last distro using Python 2.5 by default. --

[issue8796] Deprecate codecs.open()

2011-05-17 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___

[issue8796] Deprecate codecs.open()

2010-09-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: We can reconsider this at some later time, when Python 2.x is not really used much anymore. -- resolution: - postponed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8796] Deprecate codecs.open()

2010-09-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

[issue8796] Deprecate codecs.open()

2010-05-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: That deprecation is way too fast. If someone wants to write code that works in Python 2.5 or older *and* Python 3 then codecs.open will most likely be how they keep compatibility for reading in encoded files. But yes, overall it should get

[issue8796] Deprecate codecs.open()

2010-05-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If someone wants to write code that works in Python 2.5 or older *and* Python 3 then codecs.open will most likely be how they keep compatibility for reading in encoded files. Can't 2to3 do the conversion? (codecs.open = open)

[issue8796] Deprecate codecs.open()

2010-05-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I'm not talking about those people who use 2to3, I'm talking about those who want source-compatibility between Python 2 and Python 3. So they don't run 2to3 as it just works in Python 3 without modification. --

[issue8796] Deprecate codecs.open()

2010-05-24 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: -- nosy: +meatballhat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

[issue8796] Deprecate codecs.open()

2010-05-23 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: codecs module (and codecs.open() function) was added to Python 2.0. codecs.open() creates a StreamReaderWriter object which use two other objects: StreamReader and StreamWriter. Python 2.6 and 3.0 have a new API: the io module.

[issue8796] Deprecate codecs.open()

2010-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +lemburg, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list