close has no effect on Mac OSX Python 3.0

R

resi147

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
 
R

resi147

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top