2 messages in org.python.python-bugs-list[ python-Bugs-924218 ] socket._fileob...
FromSent OnAttachments
SourceForge.netMar 26, 2004 4:33 pm 
SourceForge.netMar 29, 2004 4:01 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-924218 ] socket._fileobject._getclosed() returns wrong valueActions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 29, 2004 4:01:58 pm
List:org.python.python-bugs-list

Bugs item #924218, was opened at 2004-03-26 13:33 Message generated for change (Comment added) made by gigamorph You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924218&group_id=5470

Category: Python Library Group: Python 2.3

Status: Closed Resolution: Duplicate

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: June Kim (gigamorph)

Date: 2004-03-29 11:14

Message: Logged In: YES user_id=1007376

Duplicate, resolved in #924242.

----------------------------------------------------------------------