[Python-Dev] Re: _PyTuple_Resize() in 2.2

Gustavo Niemeyer niemeyer@conectiva.com
Thu, 29 Nov 2001 20:45:12 -0200


--JYK4vJDZwFMowpUq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> > 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.
>=20
> 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)=20
[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)=20
[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

--=20
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]

--JYK4vJDZwFMowpUq
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Brp3IlOymmZkOgwRAiDDAJwLSGpp4LioKNrQEs3UmeqFSWlKdACdEVsU
QRjuzauPFpWMTDp29lD2180=
=8zgM
-----END PGP SIGNATURE-----

--JYK4vJDZwFMowpUq--