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
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
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
Changes by Duncan Booth <[EMAIL PROTECTED]>:
--
nosy: +duncanb
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2417>
__
___
Python-bugs-list mailing
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