[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1062
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-12-08 Thread maniram maniram

maniram maniram maniandra...@gmail.com 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1062
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-12-08 Thread maniram maniram

maniram maniram maniandra...@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 rep...@bugs.python.org
http://bugs.python.org/issue1062
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tjre...@udel.edu:


--
stage:  - unit test needed
versions: +Python 3.2 -Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1062
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1062
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1062
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1062
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that, it will be
 difficult to implement correctly across all systems.

 --
 nosy: +loewis

 __
 Tracker [EMAIL PROTECTED]
 http://bugs.python.org/issue1062
 __


__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1062
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com