Jacek Konieczny <jaj...@jajcus.net> added the comment:

Thanks for the quick review. Most of the problems are my oversights.

I am not sure about that:
> And I think get_channel_binding() should raise NotImplementedError in that 
> case.

As the method is supposed to be extensible and 'tls-unique' may be just one of 
possible channel-binding types, then I think the same exception should be 
raised in case 'tls-unique' is requested and not implemented and when other, 
currently not implemented, channel binding type is requested. The 
get_channel_binding() method itself is always implemented, that is why I wonder 
if 'ValueError' is no better. Or 'NotImplementedError' for both 'tls-unique not 
implemented' and 'unknown channel binding'.

----------

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

Reply via email to