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

Keith Jones kmj9907 at
Mon Aug 4 22:57:24 CEST 2003

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

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 ?
IOError: [Errno 21] Is a directory


More information about the Python-list mailing list