[issue11272] input() has trailing carriage return on windows

2011-02-23 Thread Duncan Booth
Duncan Booth added the comment: > If anyone knows how to reproduce the two bugs with a short Python > script, I can try to convert it into a test. If you don't mind kicking off some sub-processes then here's a script that shows the bugs. I couldn't figure out how to d

[issue11272] input() has trailing carriage return on windows

2011-02-21 Thread Duncan Booth
Duncan Booth added the comment: Yes, it does indeed look like stdin has been opened in binary mode. Just iterating over it also gives the spurious carriage returns: C:\Python32>python Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type &q

[issue11272] input() has trailing carriage return on windows

2011-02-21 Thread Duncan Booth
New submission from Duncan Booth : In Python 3.2, the builtin function `input()` returns a string with a trailing '\r' on windows: C:\Python32>python Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyr

[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-03-19 Thread Duncan Booth
Changes by Duncan Booth <[EMAIL PROTECTED]>: -- nosy: +duncanb __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2417> __ ___ Python-bugs-list mailing

[issue1445] SystemError accessing uninitialised cell contents

2007-11-15 Thread Duncan Booth
New submission from Duncan Booth: The following code throws a SystemError exception. cell_get_contents in Objects\cellobject.c should check for a null op->ob_ref value and throw an appropriate exception. >>> def oops(): def f(): cell f.func_closure[0].cell_contents