Serhiy Storchaka added the comment:
Please open new issue for this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
___
Василий Макаров added the comment:
open() documentation is probably broken a little now. Here is what one can see
at the end of open() description:
...
Deprecated since version 3.4, will be removed in version 4.0.
The 'U' mode.
Reader may assume open() function is what will be removed. Which
Roundup Robot added the comment:
New changeset 2d5544afb510 by R David Murray in branch 'default':
whatsnew: 'U' mode deprecation (#15204).
http://hg.python.org/cpython/rev/2d5544afb510
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 694e2708b4a8 by Serhiy Storchaka in branch 'default':
Issue #15204: Silence and check the 'U' mode deprecation warnings in tests.
http://hg.python.org/cpython/rev/694e2708b4a8
--
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
Serhiy Storchaka added the comment:
Updated patch addresses Ezio's comments.
--
Added file: http://bugs.python.org/file32809/deprecate-U-mode_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
Roundup Robot added the comment:
New changeset 70bd6f7e013b by Serhiy Storchaka in branch 'default':
Issue #15204: Deprecated the 'U' mode in file-like objects.
http://hg.python.org/cpython/rev/70bd6f7e013b
--
nosy: +python-dev
___
Python tracker
Serhiy Storchaka added the comment:
Thanks Victor and Ezio for the reviews.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
___
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Could anyone please review the patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
___
Changes by Guido van Rossum gu...@python.org:
--
nosy: -gvanrossum, jackjansen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
___
Serhiy Storchaka added the comment:
Updated patch addresses Victor's comments.
--
Added file: http://bugs.python.org/file32708/deprecate-U-mode_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file26198/deprecate-U-mode-stage2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file27345/deprecate-U-mode-stage1_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
Serhiy Storchaka added the comment:
Here is an updated patch. I think we can combine 1 and 2 stages (change the
documentation and add warnings).
--
Added file: http://bugs.python.org/file31416/deprecate-U-mode.patch
___
Python tracker
Vajrasky Kok added the comment:
http://bugs.python.org/review/15204/diff/9032/Tools/iobench/iobench.py
Line 10 in New:
import io
But io module is never used.
--
nosy: +vajrasky
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Would the deprecation need to be moved up to 3.4 though now?
Yes, I think so.
--
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - patch review
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
Serhiy Storchaka added the comment:
Ideally, this proposed deprecation should be mentioned on python-dev so that
those folks will have an opportunity to respond.
http://comments.gmane.org/gmane.comp.python.devel/134996
--
___
Python tracker
Serhiy Storchaka added the comment:
Chris, you did a great job on improving the documentation (including about
universal newlines). Can you help with this issue?
For the first stage should be clearly shown that U mode is not only should
not be used in new code, but must be removed from the
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file26197/deprecate-U-mode-stage1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
Chris Jerdonek added the comment:
Thanks, Serhiy. :) Sure, I should be able to help with the documentation
portion of this issue if the community is in agreement. Would the deprecation
need to be moved up to 3.4 though now?
--
___
Python tracker
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
___
Raymond Hettinger added the comment:
The only people affected by deprecating U are the people who are currently
using it for some reason -- presumably they are expecting that it does
something useful for their code.
Ideally, this proposed deprecation should be mentioned on python-dev so that
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +cjerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
___
Serhiy Storchaka storch...@gmail.com added the comment:
Unless there are places where it is actually broken, I don't think there is a
good reason to have step 3.5, though. Just add the deprecation warning and
remove it in 4.0.
Well. In any case, the 'U' mode in most cases has no effect,
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file26197/deprecate-U-mode-stage1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file26198/deprecate-U-mode-stage2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
Nadeem Vawda nadeem.va...@gmail.com added the comment:
+1 for the general idea of deprecating and eventually removing the U
modes.
But I agree with David, that it doesn't make sense to have separate steps
for 3.5 and 3.6/4.0. If you make the code raise an exception when U is
used, how is that
New submission from Serhiy Storchaka storch...@gmail.com:
Since Python 2.3 many open functions supports Universal line mode (PEP 278).
Since 3.0 (and 2.6) PEP 3116 suggests better alternative -- io.TextWrapper.
Now support for the 'U' mode in the different open functions is heterogeneous.
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +gvanrossum, jackjansen, pitrou, stutzbach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
Serhiy Storchaka storch...@gmail.com added the comment:
Related issues: #2091, #5148, #6759, #12900.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
Antoine Pitrou pit...@free.fr added the comment:
Starting to deprecate U in the 3.3 docs sounds reasonable to me.
--
nosy: +georg.brandl, nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
R. David Murray rdmur...@bitdance.com added the comment:
Unless there are places where it is actually broken, I don't think there is a
good reason to have step 3.5, though. Just add the deprecation warning and
remove it in 4.0.
--
nosy: +r.david.murray
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15204
___
35 matches
Mail list logo