[issue11688] SQLite trace callback

2011-04-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed now. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue11688> ___ ___ Python-bugs-lis

[issue11761] fragile tests in test_gc

2011-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4329/steps/test/logs/stdio == FAIL: test_collect_generations (test.test_gc.GCTests

[issue11749] test_socket failure

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here's an implementation of read1() that satisfies that condition, along with > some relevant unit tests. Something looks fishy: what happens if size is -1 and EOFError is not raised? -- ___ Python tra

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch now committed, thank you! Since the patch adds a new API (GzipFile.read1()), I think it's better not to backport it. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: behavior ->

[issue11765] test_faulthandler failure

2011-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4334/steps/test/logs/stdio == FAIL: test_dump_tracebacks_later (test.test_faulthandler.FaultHandlerTests

[issue11766] test_multiprocessing failure (test_pool_worker_lifetime)

2011-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : This sometimes happens on the buildbots: test test_multiprocessing failed -- Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_multiprocessing.py", line 1191, in test_pool_worke

[issue11761] fragile tests in test_gc

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The new FreeBSD buildbot had a sporadic SIGKILL in http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1/steps/test/logs/stdio (apparently, faulthandler didn't dump a traceback) By the way, we can be fairly certain now tha

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, at this point I think we could simply skip the test on BSDs and OS X. The tested functionality is cross-platform, so testing under a limited set of systems should be ok. -- ___ Python tracker <h

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rather than hardwiring `self.addCleanup(lambda: setattr(self, '_diffThreshold', 2**16))`, you should retrieve the previous value. -- ___ Python tracker <http://bugs.python.o

[issue11771] hashlib object cannot be pickled

2011-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why on Earth would you want to serialize a hashlib object? It makes as much sense as serializing, say, a JSONEncoder. -- nosy: +gregory.p.smith, pitrou ___ Python tracker <http://bugs.python.org/issue11

[issue11767] Maildir iterator leaks file descriptors by default

2011-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue11767> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Why not add fast paths to the generic functions if that's what you're > concerned about? > > It's unexpected for the user of the functions and breaks years of > tradition. What if someone calls PyList_Append on a custom type th

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 1. It's an external API. We *don't control* most of the potentially > broken code, so saying "just fix the call sites" effectively solves > nothing and leaves classes like OrderedDict at risk of subtle silent > corruption w

[issue11766] test_multiprocessing failure (test_pool_worker_lifetime)

2011-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: There is no Cygwin buildbot, this is a regular Windows buildbot (despite the path in the traceback). That said, spawning processes is quite slow under Windows anyway (much slower than under Linux). So we could up the countdown

[issue11766] test_multiprocessing failure (test_pool_worker_lifetime)

2011-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hopefully fixed now, thanks for your diagnosis! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 3.1 ___ Python tracker <http://bugs.python.or

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%207.2%202.7/builds/519/steps/test/logs/stdio == FAIL: test_notify_all (test.test_multiprocessing.WithProcessesTestCondition

[issue11792] asyncore module print to stdout

2011-04-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> giampaolo.rodola nosy: +giampaolo.rodola stage: -> needs patch versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker <http://bugs.python.org/i

[issue6715] xz compressor support

2011-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Having "Christophe Simonis" in the nosy list is precluding NOSY > changes. I guess the space is causing problems. Should we forbid > spaces in usernames (maybe provided by OpenID, who knows)??? Please report this in the meta-tracke

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue11800> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: The question is: what's the point? Having an individual test timeout is not more "correct" than having a timeout for a test file. Both are arbitrary. Therefore, I'd prefer we choose the simplest solution and this patch brings complica

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Buildbots use currently a global timeout of 1 hour. I tried timeouts > of 5, 15 and 30 minutes for a file, and I always got false positive. > Using a timeout of 15 minutes per function, I don't expect any false > positive anymore. Still I do

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 07 avril 2011 à 23:08 +, STINNER Victor a écrit : > STINNER Victor added the comment: > > > Still I don't see the point. Is a 60 minutes timeout too long? > > If regrtest timeout is too close to the buildbot timeou

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2011-04-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue11804> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11800] regrtest --timeout: apply the timeout on a function, not on the whole file

2011-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I did a similar test on Windows: test_io takes ~19.1 sec with and > without timeout. You may want to test with test_argparse. -- ___ Python tracker <http://bugs.python.org/i

[issue11779] test_mmap timeout (30 min) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, buildbots run tests with "-uall", so the "largefile" resource gets enabled. -- nosy: +pitrou ___ Python tracker <http://bug

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: It has been fixed in 2.7.x, not 2.6.x (which is in security fixes-only mode). Can you try with 2.7.1? -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue11

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Confirmed. In the meantime, you can connect manually using socket.create_connection(): >>> import ssl, socket >>> conn = socket.create_connection(("2001:888:2003:1004:c2ff:eeff:fe00:133", >>>

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) keywords: +easy ___ Python tracker <http://bugs.python.org/issue11811> ___ ___ Python-bugs-list mailin

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Actually, python 2.6 is the default version in pkgsrc > (http://www.netbsd.org/docs/software/packages.html), and the reason > why i'm pulling up this bug is that python 2.6 failure on SunOS brings > down more than 3000 packages :/ Neverth

[issue11812] transient test_telnetlib failure

2011-04-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/2920/steps/test/logs/stdio test test_telnetlib failed -- Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_telnetl

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.python.org/issue11810> ___ ___ Python-bugs-

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : There's the following code in pool.py, line 494 and following: debug('joining task handler') task_handler.join() debug('joining result handler') task_handler.join() It seems the last line should

[issue11815] Simplifications in concurrent.futures

2011-04-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : Queue.get(block=True) cannot raise EmptyError, meaning there's some dead code that we can remove. -- components: Library (Lib) files: cfsimplify.patch keywords: patch messages: 133435 nosy: bquinlan, pitrou priority: normal severity: normal

[issue11815] Simplifications in concurrent.futures

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: A further optimization would be to use a SimpleQueue (from multiprocessing.queues) for the result_queue in the ProcessPoolExecutor. A SimpleQueue is much more light-weight than a normal Queue, which has a bunch of additional locks and a dedicated thread

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I know this is closed etc... but Plone (the CMS I use) is tied to > various versions of Python, in particular 2.6 at this time. Having it > not build on Open[Solaris/Indiana] means I can't install current > versions of Plone/Zope on th

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue11810> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: smptlib should support SSL contexts -> smtplib should support SSL contexts ___ Python tracker <http://bugs.python.org/iss

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Duplicate of issue11821. -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> smtplib should provide a means to validate a remote server ssl certificate(s) ___ Python track

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, I meant issue8809. -- superseder: smtplib should provide a means to validate a remote server ssl certificate(s) -> smtplib should support SSL contexts ___ Python tracker <http://bugs.python.org/issu

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is anybody working on this issue? If not, I think it looks like it > might be a nice one for me to tackle. I'll go ahead unless there are > any objections. Nobody is working on it AFAIK. Feel free to

[issue11823] disassembly needs to argument counts on calls with keyword args

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +easy stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue11823> ___ ___ Python-bugs-list mai

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nice! See also issue11814. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue8428> ___ ___ Python-bugs-list m

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed now, thank you Charles-François. As for the TestCondition failure, there's a separate issue11790 open. (Victor, please don't file many bugs in a single issue!) -- resolution: -> fixed stage: -> committed/rejec

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed. The _terminate() issue has been fixed separately in issue8428. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Windows nosy: +brian.curtin, tim.golden versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue5

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: test needed -> patch review ___ Python tracker <http://bugs.python.org/issue5162> ___ ___ Python-bugs-list mailing list Un

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it should be enabled with an optional argument. Otherwise in some cases you'll get lots of additional output while you're only interested in the top-level code. -- nosy: +pitrou ___ Python trac

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If you disassemble a function, you typically want to see all the code > in that function. That depends on the function. If you do event-driven programming (say, Twisted deferreds with addCallback()), you don't necessarily want to see the disasse

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-04-12 Thread Antoine Pitrou
New submission from Antoine Pitrou : multiprocessing.queues.SimpleQueue is undocumented and doesn't appear in multiprocessing.__all__. -- assignee: docs@python components: Documentation, Library (Lib) keywords: easy messages: 133586 nosy: docs@python, pitrou priority: normal sev

[issue11815] Simplifications in concurrent.futures

2011-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Another solution would be to rewrite the test to not use mmap() at all: > > @precisionbigmemtest(size=_4G + 4, memuse=1) > def test_big_buffer(self, size): > if size < _4G + 4: > self.skipTest("not e

[issue2771] Test issue

2011-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file21659/sometext.txt ___ Python tracker <http://bugs.python.org/issue2771> ___ ___ Python-bugs-list mailin

[issue8326] Cannot import name SemLock on Ubuntu lucid

2011-04-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue8326> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11846] Implementation question for (-5) - 256 caching, and doc update for c-api/int.html

2011-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think it's in the business of the C API docs to explain Python-visible semantics, or the difference between "==" and "is". I would just rephrase the original paragraph, removing the last sentence joke: “Since integ

[issue11812] transient test_telnetlib failure

2011-04-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 1. Find a more reliable host to test with? Well, if you find a more reliable host than "localhost", why not ;-) -- ___ Python tracker <http://bugs.pytho

[issue11856] Optimize parsing of JSON numbers

2011-04-16 Thread Antoine Pitrou
New submission from Antoine Pitrou : In Python 3.x, parsing JSON numbers involve calling PyLong_FromUnicode or PyFloat_FromString with an unicode object. These functions are quite costly because they call PyUnicode_TransformDecimalToASCII(). But JSON numbers are always pure ASCII. This patch

[issue11856] Optimize parsing of JSON numbers

2011-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Cleaned up patch. -- Added file: http://bugs.python.org/file21686/jsonnumbers2.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11005] Assertion error on RLock._acquire_restore

2011-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here is a patch: Antoine, would you like to review it? > > -- > keywords: +patch > nosy: +pitrou > Added file: http://bugs.python.org/file21636/rlock_release_save.patch Well, it looks ok to me. Is the a

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, it just seems that the sleep period is sometimes too low. Will commit a patch. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.or

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with your analysis. The problem is that the signal module doesn't expose pthread_sigmask. We could grab Jean-Paul's implementation from http://bazaar.launchpad.net/~exarkun/python-signalfd/trunk/view/head:/signalfd/_signalfd.c (although I&

[issue11849] ElementTree memory leak

2011-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > To sum up, python is returning memory, but your libc is not. > You can force it using malloc_trim, see the attached patch (I'm not at > all suggesting its inclusion, it's just an illustration). That's an interesting thing, perhaps yo

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The signal handler calls Py_AddPendingCall() which blocks on acquiring > "pending_lock". It blocks in taking the mutex, not on waiting for the condition variable. Otherwise it wouldn't block (microseconds = 0). I think the s

[issue11863] Enforce PEP 11 - remove support for legacy systems

2011-04-17 Thread Antoine Pitrou
New submission from Antoine Pitrou : PEP 11 calls for removing support for the following systems in 3.3: Name: Systems using Mach C Threads Unsupported in: Python 3.2 Code removed in: Python 3.3 Name: SunOS lightweight processes (LWP) Unsupported

[issue11864] sporadic failure in test_concurrent_futures

2011-04-17 Thread Antoine Pitrou
New submission from Antoine Pitrou : Happened on a buildbot: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/2957/steps/test/logs/stdio test test_concurrent_futures failed -- Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-win

[issue11768] test_signals() of test_threadsignals failure on Mac OS X

2011-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: if I understand correctly your patch, if we have a pending > signal, all next signals will be simply ignored. I don't think so, please re-read. -- ___ Python tracker <http://bugs.python.

[issue11768] signal_handler() is not reentrant: deadlock in Py_AddPendingCall()

2011-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, since it is a bugfix, you should apply it to all versions. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gps ___ Python tracker <http://bugs.python.org/issue11870> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > threading_info.patch: > - Add thread._info() function -> dict with 'name' and > 'use_semaphores' (pthread only) keys Most of these names will be removed in 3.3: http://bugs.python.org/issue11863 -- __

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Yeah, I know. My patch should be updated if #11863 is fixed before this issue. > > Updated patch: > - add 'pthread_version' key to threading._info() > - test_os uses threading._info() to check if we are using linuxthr

[issue11863] Enforce PEP 11 - remove support for legacy systems

2011-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python/thread.c contains a reference to a missing file: > > #ifdef PLAN9_THREADS > #include "thread_plan9.h" > #endif > > But I don't see where PLAN9_THREADS is defined. > > remove_threads.patch removes these 3 l

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue11882> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I also renamed 'name' key to 'thread', so 'thread' is the name of the > *thread* implementation, and 'lock' is the name of the *lock* > implementation. Not that I want to bikeshed, but I think 'name'

[issue11877] Mac OS X fsync() should really be fcntl(F_FULLFSYNC)

2011-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with Ronald. If Apple thinks fsync() shouldn't flush the hardware cache, there's no reason for us to override that. -- nosy: +pitrou ___ Python tracker <http://bugs.python.o

[issue8809] smtplib should support SSL contexts

2011-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. A couple of comments: - it would be nice to have some tests, but of course there are no tests for SMTP_SSL currently. If you are motivated, perhaps you could investigate into adding some. - there are some tab characters in your patch

[issue11893] Obsolete SSLFakeFile in smtplib?

2011-04-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : smtplib uses a wrapper class "SSLFakeFile" in order to call readline() on an SSL socket. But modern SSL sockets have makefile(), so using that wrapper class really shouldn't necessary (of course, it must be investigated whether that's t

[issue11223] interruption of locks by signals not guaranteed when locks are implemented using POSIX condition variables

2011-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - Rename _PyThread_Info() to PyThread_GetInfo() (consistent name with > PyFloat_GetInfo() and PyLong_GetInfo()) I don't think we want that API to be public, so it should be _PyThread_GetInfo(). > - Always compile thread.c, but add #ifd

[issue11382] some posix module functions unnecessarily release the GIL

2011-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry for the delay, I had forgotten about this issue. Thank you for the patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I committed a modified patch. Hopefully the buildbots won't break this time :) -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> pending ___ Python tracker <http:

[issue11912] Python shouldn't use the mprotect() system call

2011-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Where have you seen that Python is calling mprotect()? There's no sign of it in the whole source tree. -- nosy: +neologix, pitrou ___ Python tracker <http://bugs.python.org/is

[issue11912] Python shouldn't use the mprotect() system call

2011-04-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > /usr/bin/iotop is a Python script and according to that log message > grsecurity detected a call to mprotect(). Well, does Python itself run ok? That Python script could use third-party extension modules which issue the offending mprotect(

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue11258> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue11882> ___ ___ Python-bugs-list mailin

[issue10914] Python sub-interpreter test

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: After wrestling with startup issues on the OS X buildbots, here is a new patch, tested on several different UNIX platforms. -- Added file: http://bugs.python.org/file21765/embedtest2.patch ___ Python tracker <h

[issue10914] Python sub-interpreter test

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unless someone objects, I would like to commit that latest patch, since at least it enables the start of a regression suite for Python embedding. (it also allowed me to notice how crufty and incredibly obscure the getpath.c mechanisms are

[issue11750] Mutualize win32 functions

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Amaury that it would be better in Modules. In my experience, code that is in PC/ is a pain to discover. A couple of nits about the patch: - the functions in the PyMethodDef array could be sorted alphabetically - the defint() macro isn't nece

[issue11750] Mutualize win32 functions

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: PS: I don't think there's a problem with the "_windows" name, as long as wxPython doesn't depend on a *toplevel* module named "_windows". -- ___ Python tracker

[issue8065] Memory leak in readline.get_current_history_length

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, I tried Alexander's tests on the buildbots and it failed on OS X Leopard: http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%20custom/builds/12/steps/test/logs/stdio but succeeded on OS X Tiger: http://www.python.org/dev/bui

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: What do you call "sandbox" ? Also, would be nice if you investigated a bit more about the causes. From the traceback, it looks like the child process is stuck inside exec(). -- ___ Python trac

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 19d9f0a177de causes that test_ctypes hangs when test suite is run in > Gentoo sandbox. Please reopen this issue. I'd prefer having a separate issue (which you already opened :-)). The fact that all buildbots work fine after the change suggests to

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: duplicate -> status: closed -> open ___ Python tracker <http://bugs.python.org/issue11915> ___ ___ Python-bugs-

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The MALLOC_MMAP_THRESHOLD improvement is less visible here: $ MALLOC_MMAP_THRESHOLD_=1024 ../opt/python issue11849_test.py *** Python 3.3.0 alpha --- USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND 0 antoine 7703 0.0 0.1 57756

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > By the way, I noticed that dictionnaries are never allocated through > pymalloc, since a new dictionnary takes more than 256B... On 64-bit builds indeed. pymalloc could be improved to handle allocations up to 512B. Want to try and write a

[issue11916] A few errnos from OSX

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> ronaldoussoren components: +Library (Lib), Macintosh -Extension Modules nosy: +ned.deily, ronaldoussoren stage: -> patch review versions: -Python 3.4 ___ Python tracker <http://bugs.p

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 to Victor's proposal ("expected bytes, bytearray or buffer compatible object"). -- nosy: +pitrou ___ Python tracker <http://bugs.pyt

[issue11919] test_imp failures

2011-04-25 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.2/builds/215/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.x/builds/1223/steps/test/logs/stdio

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > The MALLOC_MMAP_THRESHOLD improvement is less visible here: > > > > Are you running on 64-bit ? Yes. > If yes, it could be that you're exhausting M_MMAP_MAX (malloc falls > back to brk when there are too many mmap ma

[issue11856] Optimize parsing of JSON numbers

2011-04-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

<    23   24   25   26   27   28   29   30   31   32   >