[issue23382] Maybe can not shutdown ThreadPoolExecutor when call the method of shutdown

2015-02-27 Thread miles
miles added the comment: The attachment includes the patch file -- keywords: +patch nosy: +milesli Added file: http://bugs.python.org/file38274/thread.py.patch ___ Python tracker <http://bugs.python.org/issue23

[issue23382] Maybe can not shutdown ThreadPoolExecutor when call the method of shutdown

2015-02-03 Thread miles
miles added the comment: the attachment includes the new code -- Added file: http://bugs.python.org/file38002/thread.py ___ Python tracker <http://bugs.python.org/issue23

[issue23382] Maybe can not shutdown ThreadPoolExecutor when call the method of shutdown

2015-02-03 Thread miles
miles added the comment: The attachment includes the new code -- Added file: http://bugs.python.org/file37997/thread.py ___ Python tracker <http://bugs.python.org/issue23

[issue23382] Maybe can not shutdown ThreadPoolExecutor when call the method of shutdown

2015-02-03 Thread miles
New submission from miles: Maybe can not shutdown ThreadPoolExecutor when call the method shutdown. Though the variable of _shutdown is set to true in the method of shutdown, it may also reads the variable of _shutdown from cpu cache in the method of _worker, and the worst case is that it

[issue13405] Add DTrace probes

2011-11-22 Thread Chris Miles
Changes by Chris Miles : -- nosy: -chrismiles ___ Python tracker <http://bugs.python.org/issue13405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-17 Thread Darryl Miles
Darryl Miles added the comment: With regards to create test cases for certain situations, sure this would be possible but not with "pure python" since your APIs deny/inhibit the particular things required to force a situation for a test case. With regards to SSL_peek() blocking,

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-11 Thread Darryl Miles
Darryl Miles added the comment: To explain why you need 2 modes, a client/server would expect to do the following pseudo actions for maximum efficiency: set_socket_timeout(600_SECONDS) # or useful default send_data_over_ssl("QUIT\r\n") shutdown(SSL_SHUTDOWN

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-11 Thread Darryl Miles
Darryl Miles added the comment: I am unable to get "make test" to run from an unpatched version in SVN (details below of make output). Please find attached an updated patch for your consideration (and testing, as I can't test it due to 'make test' SIGSEGV on CentOS

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-09 Thread Darryl Miles
Changes by Darryl Miles : Removed file: http://bugs.python.org/file16838/python_ssl.c.txt ___ Python tracker <http://bugs.python.org/issue8108> ___ ___ Python-bugs-list m

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-09 Thread Darryl Miles
Darryl Miles added the comment: I've updated my attachment to the bug, if you read the old one please re-read the updated version (since some points in there were not accurate). With regards to the OpenSSL error return -1/ERROR_SYSCALL with errno==0 being observed, I shall respond int

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-08 Thread Darryl Miles
Darryl Miles added the comment: In order to build Python with a specific version of OpenSSL followed the CYGWIN instructions and edited Modules/Setup to make it read (note - I added "-L$(SSL)" into the linker options too, since by default on CentOS 5.4 i386 OpenSSL build in stat

[issue2320] Race condition in subprocess using stdin

2009-09-07 Thread Chris Miles
Changes by Chris Miles : -- nosy: +chrismiles ___ Python tracker <http://bugs.python.org/issue2320> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-08-31 Thread Miles Kaufmann
Changes by Miles Kaufmann : Removed file: http://bugs.python.org/file14796/urllib_parse.py3k.patch ___ Python tracker <http://bugs.python.org/issue5468> ___ ___ Python-bug

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-08-28 Thread Miles Kaufmann
Miles Kaufmann added the comment: I've attached a patch that provides similar functionality to Dan Mahn's urlencode(), as well as providing encoding and errors parameters to parse_qs and parse_qsl, updating the documentation to reflect the added parameters, and adding test c

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-06-15 Thread Miles Kaufmann
Miles Kaufmann added the comment: parse_qs and parse_qsl should also grow encoding and errors parameters to pass to the underlying unquote(). -- nosy: +milesck ___ Python tracker <http://bugs.python.org/issue5

[issue6234] cgi.FieldStorage is broken when given POST data

2009-06-15 Thread Miles Kaufmann
Changes by Miles Kaufmann : -- nosy: +milesck ___ Python tracker <http://bugs.python.org/issue6234> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4111] Add DTrace probes

2009-02-22 Thread Chris Miles
Changes by Chris Miles : -- nosy: +chrismiles ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4736] io.BufferedRWPair.closed broken; tries to call bool writer.closed property

2008-12-24 Thread Miles
New submission from Miles : The closed property of BufferedRWPair attempts to call the closed property of its writer as a method, which fails because writer.closed is a bool. The following code demonstrates the error: import socket socket.socket().makefile('rwb').closed --