[Python-Dev] The zombi thread of the Tcl library

2011-05-04 Thread Victor Stinner
Hi, I have a question: would it be possible to mask all signals in the Tcl thread? To understand the question, let's see the context... I'm working on signals, especially on pthread_sigmask(), and I'm trying to understand test_signal failures. test_signal fails if the _tkinter module is loaded,

[Python-Dev] Borrowed and Stolen References in API

2011-05-04 Thread Mark Shannon
Hi, The online documentation specifies which API function borrow and/or steal references (as opposed to the default behaviour). Yet, I cannot find this information anywhere in the source. Any clues as to where I should look? Cheers, Mark ___ Python-

[Python-Dev] Borrowed and Stolen References in API

2011-05-04 Thread Amaury Forgeot d'Arc
Hi, Le mercredi 4 mai 2011, Mark Shannon a écrit : > The online documentation specifies which API function borrow and/or steal > references (as opposed to the default behaviour). > Yet, I cannot find this information anywhere in the source. > > Any clues as to where I should look? It's in the f

Re: [Python-Dev] The zombi thread of the Tcl library

2011-05-04 Thread Antoine Pitrou
On Wed, 04 May 2011 10:58:42 +0200 Victor Stinner wrote: > > Tcl_Finalize() exits the thread, but this function is never called in > Python. Anyway, it is not possible to unload a module implemented in C. You could expose Tcl_Finalize() for debug purposes and call it in test_signal. Regards An

Re: [Python-Dev] The zombi thread of the Tcl library

2011-05-04 Thread Victor Stinner
Le mercredi 04 mai 2011 à 12:05 +0200, Antoine Pitrou a écrit : > On Wed, 04 May 2011 10:58:42 +0200 > Victor Stinner wrote: > > > > Tcl_Finalize() exits the thread, but this function is never called in > > Python. Anyway, it is not possible to unload a module implemented in C. > > You could exp

[Python-Dev] New interest areas in Experts Index

2011-05-04 Thread Nick Coghlan
I just added two new interest areas in the Expert's Index [1] context managers: for any issues relating to proposals to add context management capabilities to objects in the stdlib, triagers should feel free to add me to the nosy list test coverage: this is specifically for anyone willing to help

Re: [Python-Dev] cpython (2.7): Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits

2011-05-04 Thread Antoine Pitrou
On Wed, 04 May 2011 21:27:50 +0200 victor.stinner wrote: > http://hg.python.org/cpython/rev/7f3cab59ef3e > changeset: 69834:7f3cab59ef3e > branch: 2.7 > parent: 69827:affec521b330 > user:Victor Stinner > date:Wed May 04 21:27:39 2011 +0200 > summary: > Issue #11277:

Re: [Python-Dev] Borrowed and Stolen References in API

2011-05-04 Thread Greg Ewing
Mark Shannon wrote: The online documentation specifies which API function borrow and/or steal references (as opposed to the default behaviour). Yet, I cannot find this information anywhere in the source. There are comments in some places, e.g. in listobject.h: *** WARNING *** PyList_SetIte

Re: [Python-Dev] Borrowed and Stolen References in API

2011-05-04 Thread Greg Ewing
Amaury Forgeot d'Arc wrote: It's in the file Doc/data/refcounts.dat in some custom format. However, it doesn't seem to quite convey the same information. It lists the "refcount effect" on each parameter, but translating that into the notion of borrowed or stolen references seems to require kno

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by

2011-05-04 Thread Ethan Furman
Victor Stinner wrote: Le mardi 03 mai 2011 à 16:22 +0200, Nadeem Vawda a écrit : On Tue, May 3, 2011 at 3:19 PM, victor.stinner wrote: +# Issue #10276 - check that inputs of 2 GB are handled correctly. +# Be aware of issues #1202, #8650, #8651 and #10276 +class ChecksumBigBufferTestCase(unitte