(self)
return self.fp is None
True if the connection is closed.
True if the connection is closed.
True if the connection is closed .
def isclosed(self):
        """True if the connection is closed."""
        # NOTE: it is possible that we will not ever call self.close(). This
        #       case occurs when will_close is TRUE, length is None, and we
        #       read up to the last byte, but NOT past it.
        #
        # IMPLIES: if will_close is FALSE, then self.close() will ALWAYS be
        #          called, meaning self.isclosed() is meaningful.
        return self.fp is None
def isclosed ( self ) : # NOTE: it is possible that we will not ever call self.close(). This #       case occurs when will_close is TRUE, length is None, and we #       read up to the last byte, but NOT past it. # # IMPLIES: if will_close is FALSE, then self.close() will ALWAYS be #          called, meaning self.isclosed() is meaningful. return self . fp is None