close has no effect on Mac OSX Python 3.0

resi147 scalet at yebu.de
Mon Dec 8 17:09:23 EST 2008


I'm wondering if it's really a bug since it's so trivial:

    fp = open('/etc/services')
    ct = fp.read(1048)
    print(ct[-80:], end='')
    fp.close()
    ct = fp.read(17)
    print(ct)

the second read should fail, but happily continues reading the file.
Really a bug?
As said in the subject, I use MacOSX 10.5.5 with Python 3.0,
officially released
these days.

Karl




More information about the Python-list mailing list