A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-September/121839.html below:

[Python-Dev] Deprecating "U" open mode

[Python-Dev] Deprecating "U" open mode [Python-Dev] Deprecating "U" open modeAntoine Pitrou solipsis at pitrou.net
Sat Sep 29 01:30:07 CEST 2012
On Sat, 29 Sep 2012 00:48:54 +0300
Serhiy Storchaka <storchaka at gmail.com> wrote:
> Since Python 2.3 many open-like functions supports "Universal line mode" 
> (PEP 278 [1]). Since 3.0 (and 2.6) PEP 3116 [2] suggests better 
> alternative -- io.TextWrapper.
> 
> In issue15204 [3] proposed to deprecate "U" mode in open-like functions. 
> In fact I found only three places where "U" mode is mentioned in the 
> standard library:
> 
> * builtin open (io.open) (almost ignored);
> * fileinput (transparently passed to open);
> * zipfile (inefficient and inconsistent implementation).

I'm ok on the principle, I just think we should minimize disruption (I
don't think the "U" mode adds a lot of complexity to the code).

Regards

Antoine.


-- 
Software development and contracting: http://pro.pitrou.net


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4