open('.', 'rb') on python 2.3

Keith Jones kmj9907 at cs.rit.edu
Mon Aug 4 16:57:24 EDT 2003


Well, open is just an alias for file, so my novice butt is guessing
bugfix.

And once you've opened it; it doesn't seem there's much you can do with it
anyway. (this is in 2.2)
>>> x = file('.', 'rb')
>>> x.readline()
Traceback (most recent call last):
  File "<pyshell#11>", line 1, in ?
    x.readline()
IOError: [Errno 21] Is a directory


Keith




More information about the Python-list mailing list