
One more: readline() method (and probably others) now raise an exception if called for a directory. It used to return an empty string. I haven't found this in Python's sourceforge changelog either.
Can you add this to the SF bug manager with a piece of sample code that shows what you did, what you expected, and what happened instead? I can't parse "call readline() for a directory."
I thought this has been changed on purpose. Nevertheless, I've filled a bug at sourceforge (#487277). Here is what I meant: 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
-- Gustavo Niemeyer [ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]