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

2014-04-16 Thread Martin Panter
Martin Panter added the comment: The suggested subclass might have to call the default bind(("", 0)) before running certain other operations, including connect(), send[to](), recv[from](), since these operations are meant to automatically bind if necessary. -- nosy: +vadmium

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

2011-12-08 Thread maniram maniram
maniram maniram 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

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

2011-12-08 Thread maniram maniram
maniram maniram added the comment: perhaps you can subclass socket.socket and make a function wrapper around bind and connect that sets a variable if called like: class sock(socket.socket): def bind(self,*args): self.is_bound = True -- nosy: +maniram.maniram __

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

2010-08-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> unit test needed versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ ___ Pyt

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

2008-01-05 Thread vila
Changes by vila: -- nosy: +vila __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

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

2007-08-30 Thread Bill Janssen
Bill Janssen added the comment: Indeed. Calls for some design chops. Again, it's a question of what the socket.socket class really is. Bill On 8/30/07, Martin v. Löwis <[EMAIL PROTECTED]> wrote: > > Martin v. Löwis added the comment: > > Given that the underlying platform has no support for t

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

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: Given that the underlying platform has no support for that, it will be difficult to implement correctly across all systems. -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> _

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

2007-08-30 Thread Bill Janssen
Bill Janssen added the comment: What happened to my issue metadata? -- assignee: -> janssen priority: -> low title: None -> nice to have a way to tell if a socket is bound type: -> rfe versions: +Python 2.6, Python 3.0 __ Tracker <[EMAIL PROTECTED]>