[issue16306] Multiple error line for unknown command line parameter

2012-10-23 Thread Thiébaud Weksteen
New submission from Thiébaud Weksteen: Hi, I've just came across an insignificant bug in the Python command line interface. When using an unknown parameter, the same error appears more than once: $ python3 -a -z Unknown option: -a Unknown option: -z Unknown option: -a usage: python3 [o

[issue15464] ssl: add set_msg_callback function

2012-08-06 Thread Thiébaud Weksteen
Thiébaud Weksteen added the comment: When I wrote this patch, I was focusing on a particular usage and the buffer was the only parameter that interested me. But you're right, the other parameters should be included. Which brings the following questions: * write_p looks like a boolean,

[issue15464] ssl: add set_msg_callback function

2012-07-29 Thread Thiébaud Weksteen
Thiébaud Weksteen added the comment: I've updated the patch with this method of testing. -- Added file: http://bugs.python.org/file26589/ssl_msg_callback-0.2.patch ___ Python tracker <http://bugs.python.org/is

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread Thiébaud Weksteen
Thiébaud Weksteen added the comment: I'm not sure what would be the best way to verify that. What about: def test_connect_with_msg_callback(self): with support.transient_internet("svn.python.org"): self.called = False

[issue15464] ssl: add set_msg_callback function

2012-07-26 Thread Thiébaud Weksteen
New submission from Thiébaud Weksteen : I wrote a patch for Python 3 to expose the function SSL_CTX_set_msg_callback in the module ssl. Here is a description of this function: "SSL_CTX_set_msg_callback() or SSL_set_msg_callback() can be used to define a message callback function c