Bugs item #924242, was opened at 2004-03-26 17:03
Message generated for change (Comment added) made by tim_one
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924242&group_id=5470
Category: Python Library
Group: Python 2.3
Resolution: None
Priority: 5
Submitted By: June Kim (gigamorph)
Assigned to: Nobody/Anonymous (nobody)
Summary: socket._fileobject._getclosed() returns wrong value
Initial Comment:
In socket.py, _getclosed() is defined as follows:
class _fileobject(object)
# ...
def _getclosed(self):
return self._sock is not None
Which causes the following interaction:
>>> import socket
>>> s = socket.socket()
>>> f = s.makefile()
>>> f.closed
True
>>> f.close()
>>> f.closed
False
Shouldn't the values of f.closed the opposite of the above?
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2004-03-27 21:05
Message:
Logged In: YES
user_id=31435
Why did you change the status from Open to Deleted?
Changed back to Open.
----------------------------------------------------------------------