[issue8205] test_multiprocessing failure

2010-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: patch review -> needs patch ___ Python tracker <http://bugs.python.org/issue8205> ___ ___ Python-bugs-list mailing list Un

[issue8205] test_multiprocessing failure

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It happens only when sysconfig.is_python_build() is True (i.e. build > directory). > > Proposed patch fixes it. Can't say whether the patch is ok, but I confirm it does fix the issue here. -- _

[issue8139] ossaudiodev not initializing its types

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r79317 (py3k) and r79318 (3.1). Thank you! -- nosy: +pitrou resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed. The io module has had to circumvent this and uses the following snippet when resurrecting an instance of a subclass of one of its types (see iobase_dealloc() in Modules/_io/iobase.c): /* When called from a heap type's dealloc, the type

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: In the current state of affaires this is more of a documentation issue. Python 3 doesn't support totally unbuffered text I/O (and standard streams are open in text mode). What `-u` and PYTHONUNBUFFERED do is that the binary layer of standard strea

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> georg.brandl components: +Documentation -IO nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/iss

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lemburg, loewis ___ Python tracker <http://bugs.python.org/issue8211> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I upload bfs.patch Interesting patch, but: - Please give understandable benchmark numbers, including an explicit comparison with baseline 3.2, and patched 3.2 (e.g. gilinter.patch) - Please also measure single-thread performance, because it looks like

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't quite see the point in having the streams buffered in one > level and unbuffered in another, but I guess there's a reason. The reason is simply that it wasn't implemented. Unbuffered I/O isn't useful very often. >

[issue8222] enabling SSL_ERROR_WANT_READ on SSL sockets

2010-03-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : In light of the recv() and recv_into() implementation change (issue3890), I think we should enable SSL_MODE_AUTO_RETRY for SSL sockets. It prevents blocking read() calls from getting SSL_ERROR_WANT_READ at all. (previously, we would loop manually in recv

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: enabling SSL_ERROR_WANT_READ on SSL sockets -> enabling SSL_MODE_AUTO_RETRY on SSL sockets ___ Python tracker <http://bugs.python.org/iss

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've opened a separate issue (issue8222) for the SSL_MODE_AUTO_RETRY suggestion. This very issue has been fixed in r79226 (trunk), r79287 (py3k), r79290 (3.1) and r79291 (2.6). -- resolution: accepted -> fixed stage: commit review ->

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: To me it looks clearly like a no-op ("Never bother the application with retries *if the transport is blocking*"). -- ___ Python tracker <http://bugs.python.

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Giampaolo, I tried committing your patch but the buildbot still fails, with the following errors: test_auth_issued_twice (test.test_ftplib.TestTLS_FTPClass) ... ok test_auth_ssl (test.test_ftplib.TestTLS_FTPClass) ... ok test_control_connection

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: test needed -> needs patch versions: +Python 2.6, Python 3.1 ___ Python tracker <http://bugs.python.org/issue8108> ___ _

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Florent, you shouldn't need to silence socket.error at this level. I think what needs to happen is that, when unwrap() fails in SSLConnection.close(), handle_read() and handle_write() retry the unwrap() call. That's what I gather from the explanat

[issue7992] Backport capsule object

2010-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: As Marc-André pointed out, you shouldn't have converted old uses of PyCObject. It breaks compatibility, and I don't think there's any point since 2.7 will probably be the last in the 2.x line. -- nosy: +

[issue7992] Backport capsule object

2010-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: (if you want to be perfectionist, you can have those modules provide both a PyCObject and a PyCapsule interface...) -- ___ Python tracker <http://bugs.python.org/issue7

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I use clock_gettime() to get the thread running time to calculate slice > depletion. Ouch. CLOCK_THREAD_CPUTIME_ID is not a required part of the standard. Only CLOCK_REALTIME is guaranteed to exist. By the way, it's not obvious cpued tes

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Please specify system and test details so I can try to look into it. It's a dual-core Linux x86-64 system. But, looking at the patch again, the reason is obvious: #define CHECK_SLICE_DEPLETION(tstate) (bfs_check_depleted || (tstate->tick_cou

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2010-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I'm not sure it's a good idea. For example, calling os.ftruncate(fobj) on a py3k file object will bypass the object's internal buffering, ignoring any pending buffered data; the right thing to do is to call fobj.truncate() inst

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What distribution and version of GNU/Linux are you using? $ cat /etc/mandriva-release Mandriva Linux release 2010.0 (Official) for x86_64 $ rpm -qv glibc glibc-2.10.1-6.2mnb2 $ uname -a Linux localhost 2.6.31.5-desktop-1mnb #1 SMP Fri Oct 23 00:05:22

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-03-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue1491> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2010-03-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> georg.brandl components: +Documentation -Extension Modules nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/iss

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Would it be possible to add an option to disable SSL_MODE_AUTO_RETRY > for a specific socket? Existing applications may rely on / prefer the > current behaviour. I don't think so, since recv() used to emulate that be

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +janssen ___ Python tracker <http://bugs.python.org/issue8240> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since this error seems to be aimed at warning about potential programming errors, I'm not sure it should be silenced. The obvious fix should be to pass the same argument every time (until the data finally gets written). -- nosy: +p

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > pitrou: that's debatable, since the Python programmer has no control > over memory pointers. No, but he has control over whether he always uses the same object, or generates a new argument everytime. > As I said, I have a cStringIO b

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r79448 (trunk), r79449 (py3k), r79451 (2.6), r79453 (3.1). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I also switched to gettimeofday() so it should work now on all Posix > with high resolution timer But on a busy system, won't measuring wall clock time rather than CPU time give bogus results? -- ___

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, the gilinter patch shouldn't be sensitive to whether computed gotos are enabled or not. Here is an updated patch, though, the previous one didn't apply cleanly anymore. I've also made the priority condition a bit stricter. -- A

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16238/issuegil.txt ___ Python tracker <http://bugs.python.org/issue7946> ___ ___ Python-bugs-list m

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16317/gilprio.patch ___ Python tracker <http://bugs.python.org/issue7946> ___ ___ Python-bugs-list m

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16329/gilinter.patch ___ Python tracker <http://bugs.python.org/issue7946> ___ ___ Python-bugs-list m

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-03-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue8242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8244] Remove obsolete update.sh in PEPs repo

2010-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: You're right, the script even uses CVS. Fixed in r79470. -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python

[issue8246] test_signal in test_subprocess displays traceback

2010-03-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_signal in test_subprocess doesn't mute the subprocess stderr, which gives output such as: test_subprocess . this bit of output is from a test of stdout in a different process ... . this bit of output is from a test of stdout in a diff

[issue8248] Add test cases for bool

2010-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Decimal tests should probably be in test_decimal, not test_bool. Also, I'm not sure why the __index__ and format tests aren't in the py3k patch. -- nosy: +pitrou ___ Python tracker <http://bugs.python.

[issue8251] WeakRefSet

2010-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Python 3.2a0 (py3k:79464, Mar 27 2010, 19:18:14) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from weakref import WeakSet >>> -- nosy: +pitr

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the fix to Christian's issue is just: Index: Lib/threading.py === --- Lib/threading.py(révision 79470) +++ Lib/threading.py(copie de travail) @@ -579,7 +

[issue8259] left shift operator doesn't accepts long as second argument

2010-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I get another error on a 64-bit build: >>> x = 2677691728509L << 2147483648L Traceback (most recent call last): File "", line 1, in ValueError: outrageous left shift count (yes, Python is outraged by such a large amount of left

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If socket.write() returns zero byte written, I'll have to wait until I > get another chance to send my buffer. But in the meantime, some more > data might get appended to the buffer, and the string returned by > getvalue() will be differe

[issue8248] Add test cases for bool

2010-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r79502, r79504 (trunk) and r79503 (py3k). Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8268] Make old-style classes weak referenceable

2010-03-30 Thread Antoine Pitrou
New submission from Antoine Pitrou : New-style classes are weak referenceable, but old-style classes are not. For a proper implementation of ABC caches without any memory leaks (see issue2521), this limitation should be raised. -- components: Interpreter Core messages: 101957 nosy

[issue2521] ABC caches should use weak refs

2010-03-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- dependencies: +Make old-style classes weak referenceable ___ Python tracker <http://bugs.python.org/issue2521> ___ ___ Python-bug

[issue8268] Make old-style classes weak referenceable

2010-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch nosy: +amaury.forgeotdarc stage: needs patch -> patch review Added file: http://bugs.python.org/file16701/weakref-classobj.patch ___ Python tracker <http://bugs.pyth

[issue8268] Make old-style classes weak referenceable

2010-03-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16701/weakref-classobj.patch ___ Python tracker <http://bugs.python.org/issue8268> ___ ___ Python-bug

[issue8268] Make old-style classes weak referenceable

2010-03-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file16702/weakref-classobj.patch ___ Python tracker <http://bugs.python.org/issue8268> ___ ___ Python-bug

[issue2521] ABC caches should use weak refs

2010-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, Benjamin pointed out that ABCs only support new-style classes, so old-style classes could be detected early instead of being added to the _abc_negative_cache. -- ___ Python tracker <http://bugs.python.

[issue2521] ABC caches should use weak refs

2010-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, Daniel, your patch doesn't look right. First, you shouldn't need all the sortedlist/sortedset hierarchy. Second, len(gc.get_objects()) is a truly horrible way of checking the classes have been destroyed. Just take a weakref to the cl

[issue8270] Should socket.PF_PACKET be removed, in favor of socket.AF_PACKET?

2010-03-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) nosy: +loewis priority: -> low type: -> behavior versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/

[issue8269] Missing return values for PyUnicode C/API functions

2010-03-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lemburg ___ Python tracker <http://bugs.python.org/issue8269> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8193] test_zlib fails with zlib 1.2.4

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Shouldn't it be zlib.ZLIB_VERSION < '1.2.4' rather than zlib.ZLIB_VERSION <= '1.2.4' ? -- nosy: +pitrou ___ Python tracker &l

[issue8193] test_zlib fails with zlib 1.2.4

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, actually Python is only echoing the error return from zlib here, so I don't seen the point of the conditional. Just always test against -1 and we're done. -- ___ Python tracker <http://bu

[issue8268] Make old-style classes weak referenceable

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r79535. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue2521] ABC caches should use weak refs

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Make old-style classes weak-referenceable Now done (r79535). -- ___ Python tracker <http://bugs.python.org/iss

[issue8276] useless PyEval_CallObject function

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, #defines are not exported in shared libraries. I suppose PyEval_CallObject() was part of an old definition of the Python C-API and it was kept for compatibility. -- nosy: +pitrou ___ Python tracker <h

[issue8276] useless PyEval_CallObject function

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: The #define dates back from 2007, this changeset: branch: trunk user:guido date:Sat Aug 30 17:02:50 1997 +0200 files: Include/ceval.h Python/ceval.c description: [svn r8683] Inline PyObject_CallObject (Marc-Andre Lemburg

[issue8276] useless PyEval_CallObject function

2010-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Right, we can certainly suppress the function definition now and just keep the macro. (especially given it's 1997, not 2007, there was a typo in my message) -- assignee: -> pitrou priority: -> normal stage: -> needs patch type: ->

[issue8281] test_gdb_sample fails

2010-04-01 Thread Antoine Pitrou
New submission from Antoine Pitrou : This doesn't happen in verbose mode, because stdout isn't checked: $ ./python -m test.regrtest test_gdb_sample test_gdb_sample test test_gdb_sample produced unexpected output: ***

[issue8276] useless PyEval_CallObject function

2010-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r79555 (trunk), r79556 (py3k). -- ___ Python tracker <http://bugs.python.org/issue8276> ___ ___ Python-bugs-list mailin

[issue8276] useless PyEval_CallObject function

2010-04-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8281] test_gdb_sample fails

2010-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would probably be simplest to rename it so it doesn't have a "test_" prefix. Indeed. Otherwise it gets caught and executed by regrtest as part of the standard test suite. > How about "sample_for_test_gdb.py", or somesuch?

[issue8281] test_gdb_sample fails

2010-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > (Note that due to issue 8279 the file isn't actually used at the moment > by test_gdb.py so it should be safe to rename. I have a patch attached > to that latter bug; I'll fix up the patch after that file is renamed). Thank you, thi

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-04-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil priority: -> normal ___ Python tracker <http://bugs.python.org/issue8293> ___ ___ Python-bugs-list mai

[issue1501108] Add write buffering to gzip

2010-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Additionally, since issue7471 was fixed, you should be able to wrap a GzipFile in a Buffered{Reader,Writer} object for faster buffering. -- resolution: -> out of date status: open -> closed ___ Python t

[issue8299] Improve GIL in 2.7

2010-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Kristjan, I agree with Martin, it's probably too late to make such changes for 2.7. Additionally, your "round-robin" scheme only seems round-robin when there are two threads competing. Otherwise, you could have three threads A, B and C, and t

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think this should be a release blocker for the beta, although I agree it should be one for the final release (and RCs). By the way, it doesn't affect maintenance branches. -- versions: -Python 2.6,

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Giampaolo, which call exactly triggers the "error: [Errno 0] Error"? It doesn't seem it can be _sslobj.shutdown itself. -- ___ Python tracker <http://bugs.py

[issue7696] Improve Memoryview/Buffer documentation

2010-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This is quite obscure because there's no definition of the "buffer > protocol". You can find it at http://www.python.org/dev/peps/pep-3118/#id5 (assuming it is not outdated) > the memoryview.suboffsets attribute is not

[issue7696] Improve Memoryview/Buffer documentation

2010-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > memoryview() function is not documented in library/functions.rst You should look more carefully... See http://docs.python.org/dev/library/functions.html#max (I don't know why it doesn't have its own a

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: What kind of signals can be received in real-life? (I'm assuming that most signals are of the kind that you only receive if someone else deliberately sends it to you, in which case you are supposed to be prepared to handle it) Also, does your patch

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Since it's not clear to me where exactly this comes from, whether it's > from the Python C binding or OpenSSL itself, I tried to put some > debugging printf() calls in Modules/_ssl.c, but it seems that after > installing OpenSSL 0.9.8m

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > No I haven't, but I tried just now and I get the same error. I think "inflate" is a function exported by the zlib. Perhaps you can add "-lz" to the linking flags. (Googling hints that OpenSSL can depend on the zl

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch gives access to the OpenSSL version the _ssl module is linked against, through three attributes: one gives the raw integer, another the decoded 5-tuple of ints, the last one the version string as returned by OpenSSL. -- components

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: (note: tested with OpenSSL 0.9.8k and 1.0.0) -- ___ Python tracker <http://bugs.python.org/issue8321> ___ ___ Python-bugs-list m

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : When I compile and link against a local build of OpenSSL 1.0.0 (vanilla), I get the following errors in test_ssl: == ERROR: testProtocolSSL2 (test.test_ssl.ThreadedTests

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've tried to build against OpenSSL 1.0.0, and I get further failures in test_ssl. Since I don't know whether they are related, I've created a separate issue for them: issue8322 -- ___ Python

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16767/sslversion.patch ___ Python tracker <http://bugs.python.org/issue8321> ___ ___ Python-bug

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch with doc. -- Added file: http://bugs.python.org/file16768/sslversion.patch ___ Python tracker <http://bugs.python.org/issue8

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16768/sslversion.patch ___ Python tracker <http://bugs.python.org/issue8321> ___ ___ Python-bug

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file16769/sslversion.patch ___ Python tracker <http://bugs.python.org/issue8321> ___ ___ Python-bugs-list m

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, with Benjamin's permission, in r79812 (trunk) and r79813 (py3k). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http:

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > >>> import ssl > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python2.7/ssl.py", line 62, in > from _ssl import OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_INFO, > OP

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So I'm gonna ask: when I modify *.c files, do I have to do something > else other than "./configure; make; make install" in order to see the > changes applied? No. If you run the Python binary from the SVN checkout direct

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So I'm gonna ask: when I modify *.c files, do I have to do something > else other than "./configure; make; make install" in order to see the > changes applied? Oh, sorry, I had overlooked the "make install" bit. Well then

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: It begs the question of why the tests succeed with previous OpenSSL versions. The only possibly relevant entry I could find in the OpenSSL changelog (but I'm not an expert) is the following: *) If no SSLv2 ciphers are used don't use an SSLv2

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch fixing all test_ftplib failures (tested with openssl 0.9.8k and 1.0.0). There are a couple of fixes here: - a workaround for the strange SSL_shutdown() error return, also witnessed by LightHTTPd users (see URL in comments) - an auto-retry

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file16778/newssl.patch ___ Python tracker <http://bugs.python.org/issue8108> ___ ___ Python-bugs-list mailin

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What happens if you move the SSL shutdown() call in handle_close() > method and leave handle_error() unchanged? I get occasional crashes such as the following: Exception in thread Thread-60: Traceback (most recent call last): File "/home/anto

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, this "broken pipe" error could be due to the fact that the FTP_TLS client never tries to call unwrap() on its SSL socket. Perhaps the close() method should be overriden? -- ___ Python trac

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a new patch. It doesn't change handle_error() but instead ignores abruptly closed sockets when doing the SSL shutdown. The underlying problem seems to be an asyncore limitation: close() can be called after an error such as EPIPE or ECONNABORTED

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for our test server we are currently shutting down the SSL layer for > both connections (control and data) so this might be the cause of EPIPE. I don't understand your reasoning. These are separate connections, closing one shouldn't

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - ftplib.FTP_TLS.quit: I wouldn't call unwrap() here as RFC-4217 does > that only when dealing with CCC command which is not implemented by > ftplib.py. Ok. > - I'd be for calling _do_ssl_shutdown() from handle_close() instead of &

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch without the quit() method change. -- Added file: http://bugs.python.org/file16781/newssl3.patch ___ Python tracker <http://bugs.python.org/issue8

[issue1572968] release GIL while doing I/O operations in the mmap module

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This shouldn't really care about VMS here. As for the rest, feel free to propose a patch :) Please note that most non-trivial system calls, such as ftruncate(), mremap(), even mmap() itself, deserve to be enclosed in Py_BEGIN_ALLOW_TH

[issue1572968] release GIL while doing I/O operations in the mmap module

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This shouldn't really care about VMS here. Correction: /we/ shouldn't really care about VMS here. And the reason being, of course, that we have neither developers nor known testers under VMS. (we don't even know if the current trunk b

[issue6090] zipfile DeprecationWarning Python in 2.6, failure in 2.7

2010-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> critical ___ Python tracker <http://bugs.python.org/issue6090> ___ ___ Python-bugs-list mailing list Un

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, even better if you find a way of having unit tests for bluetooth sockets. Is there some kind of "dummy" device which gives predictable results (à la /dev/zero, for example)? -- ___ Pyth

[issue8193] test_zlib fails with zlib 1.2.4

2010-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r79848 (trunk), r79849 (py3k), r79850 (2.6), r79851 (3.1). Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python track

<    43   44   45   46   47   48   49   50   51   52   >