Terry J. Reedy added the comment:

The unbind docstring, "Unbind for this widget for event SEQUENCE the
function identified with FUNCID" implies to me the behavior Juliette expected.  
The NMT reference unpacks this to two sentences.  Reading the code
        self.tk.call('bind', self._w, sequence, '')
        if funcid:
            self.deletecommand(funcid)

the docstring should be something like "Unbind for this widget the event 
SEQUENCE.  If funcid is given, delete the command also"  This part of the bind 
docstring, "Bind will return an identifier to allow deletion of the bound 
function with unbind without memory leak." implies that the unbind behavior is 
deliberate.

Serhiy, are you proposing to add a new method that does what some people 
thought unbind would do?

----------
nosy: +terry.reedy
type: behavior -> enhancement
versions: +Python 3.7 -Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31485>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to