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).

Is someone uses "U" mode and has objections?

[1] http://www.python.org/dev/peps/pep-0278/
[2] http://www.python.org/dev/peps/pep-3116/
[3] http://bugs.python.org/issue15204

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to