[Python-bugs-list] [ python-Bugs-487277 ] Different behavior of readline()
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 29 Nov 2001 14:43:43 -0800
Bugs item #487277, was opened at 2001-11-29 14:43
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=487277&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Gustavo Niemeyer (niemeyer)
Assigned to: Nobody/Anonymous (nobody)
Summary: Different behavior of readline()
Initial Comment:
The behavior of readline() has changed on 2.2. This
should be documented.
Example:
Python 2.1 (#1, Jun 22 2001, 17:13:13)
[GCC 2.95.3 20010315 (release) (conectiva)] on
linux-i386
Type "copyright", "credits" or "license" for more
information.
>>> open("/etc").readline()
''
Python 2.2b2+ (#1, Nov 27 2001, 21:39:35)
[GCC 2.95.3 20010315 (release) (conectiva)] on
linux-ppc
Type "help", "copyright", "credits" or "license" for
more information.
>>> open("/etc").readline()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 21] Is a directory
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=487277&group_id=5470