A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-December/058573.html below:

[Python-Dev] Exception type on handling closed files

[Python-Dev] Exception type on handling closed files [Python-Dev] Exception type on handling closed filesJoão Paulo Silva s.joaopaulo at gmail.com
Mon Dec 12 05:31:45 CET 2005
Look:

>>> a = file("dir/foo")
>>> a.close()
>>> a.read()

Traceback (most recent call last):
  File "<pyshell#28>", line 1, in -toplevel-
    a.read()
ValueError: I/O operation on closed file

Shoudn't this raise IOError? Seems more semantically correct to me.

--
João Paulo da Silva
LinuxUser #355914
ICQ: 265770691 | Jabber: joaopinga at jabber.org
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4