[issue1062] nice to have a way to tell if a socket is bound

maniram maniram report at bugs.python.org
Thu Dec 8 13:51:20 CET 2011


maniram maniram <maniandram01 at gmail.com> added the comment:

oops should be
class sock(socket.socket):
    _bind = socket.socket.bind
    def bind(self,*args):
        self.is_bound = True
        self._bind(self,*args)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1062>
_______________________________________


More information about the Python-bugs-list mailing list