[issue12337] Need real TextIOWrapper for stdin/stdout
STINNER Victor victor.stin...@haypocalc.com added the comment: so there really was a bug. If fixed in 3.2.1, this issue could be closed. This issue is a duplicate of #11272: upgrade to Python 3.2.1. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12337] Need real TextIOWrapper for stdin/stdout
Terry J. Reedy tjre...@udel.edu added the comment: WinXP, 3.2.0 type(sys.stdin) class 'idlelib.rpc.RPCProxy' sys.stdin.readline() a 'a\n' -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12337] Need real TextIOWrapper for stdin/stdout
R. David Murray rdmur...@bitdance.com added the comment: I'm not sure what the point of your example is, Terry. Is it not fixed in 3.2.1? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12337] Need real TextIOWrapper for stdin/stdout
Terry J. Reedy tjre...@udel.edu added the comment: That, like Antoine, I also could not reproduce, even in 3.2.0, when running under IDLE. However, with regular command line Python: Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] import sys sys.stdin.readline() a 'a\r\n' so there really was a bug. If fixed in 3.2.1, this issue could be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12337] Need real TextIOWrapper for stdin/stdout
Antoine Pitrou pit...@free.fr added the comment: I can't reproduce. Victor? Z:\defaultPCbuild\amd64\python_d.exe Python 3.3a0 (default, Jun 8 2011, 17:49:13) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import sys sys.stdin.readline() a 'a\n' ^Z Z:\defaultPCbuild\amd64\python_d.exe -u Python 3.3a0 (default, Jun 8 2011, 17:49:13) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import sys sys.stdin.readline() a 'a\n' -- nosy: +amaury.forgeotdarc, haypo, pitrou versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12337] Need real TextIOWrapper for stdin/stdout
STINNER Victor victor.stin...@haypocalc.com added the comment: I think that this issue is a duplicate of the issue #11272: Python 3.2.1 has been released recently and contains the fix. Can you try this version Fan? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12337] Need real TextIOWrapper for stdin/stdout
STINNER Victor victor.stin...@haypocalc.com added the comment: Note: Python 3.2 has another regression related to the Windows console (issue #11395), bug fixed in 3.2.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12337] Need real TextIOWrapper for stdin/stdout
New submission from Fan Decheng fandech...@gmail.com: Since -u is made default and binary stdio implemented in 3.2, many of my scripts cannot run directly in Python 3.2, because they expect \n from stdin, but on Windows \r\n is got. Since that binary stdio being default is necessary for features like CGI, what I am expecting is to get a real TextIOWrapper for stdin, so that I can still use my old code. Besides, type(sys.stdio) should no longer say TextIOWrapper, because TextIOWrapper implies the conversion from \r\n to \n. Steps to reproduce: In Python 3.2: import sys type(sys.stdin) class '_io.TextIOWrapper' sys.stdin.readline() a 'a\r\n' type(sys.stdout) class '_io.TextIOWrapper' Expected result: There should be some form of text support, such as textstream(sys.stdin).readline(). Also type(sys.stdin) should not say something like TextIOWrapper. Same for sys.stdout. -- components: IO messages: 138356 nosy: r_mosaic priority: normal severity: normal status: open title: Need real TextIOWrapper for stdin/stdout type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com