New submission from Benjamin Peterson <[EMAIL PROTECTED]>:

$ ./python.exe -c "import sys; sys.stdin.read()"
^D

In 2.6, this returns, but in 3.0, it still hangs despite having gotten
EOF. When a KeyboardInterrupt is given, this is the traceback:

^CTraceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/temp/python/py3k/Lib/io.py", line 1692, in read
    decoder.decode(self.buffer.read(), final=True))
  File "/temp/python/py3k/Lib/io.py", line 923, in read
    chunk = self.raw.read()
KeyboardInterrupt

----------
components: Library (Lib)
messages: 70565
nosy: benjamin.peterson
priority: release blocker
severity: normal
status: open
title: sys.stdin.read won't return on EOF
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to