Den 13.08.2011 17:43, skrev Antoine Pitrou:
These days we have PyGILState_Ensure():
http://docs.python.org/dev/c-api/init.html#PyGILState_Ensure
With the most recent Cython (0.15) we can just do:
with gil:
to ensure holding the GIL.
And similarly from a thread holding the GIL
with no
On Sun, Aug 14, 2011 at 9:53 AM, antoine.pitrou
wrote:
> http://hg.python.org/cpython/rev/0273d0734593
> changeset: 71862:0273d0734593
> user: Antoine Pitrou
> date: Sun Aug 14 01:51:52 2011 +0200
> summary:
> Monotonic, not monotonous
>
> files:
> Lib/test/pickletester.py | 2
On Sun, Aug 14, 2011 at 9:08 AM, Doug Hellmann wrote:
>
> Charles McLaughlin of Atlassian has set up mirrors of the Mercurial
> repositories hosted on python.org as part of the ongoing infrastructure
> improvement work. These mirrors will give us a public fail-over repository in
> the event tha
On Sun, Aug 14, 2011 at 9:26 AM, Guido van Rossum wrote:
>> These days we have PyGILState_Ensure():
>> http://docs.python.org/dev/c-api/init.html#PyGILState_Ensure
>>
>> and even dedicated documentation:
>> http://docs.python.org/dev/c-api/init.html#non-python-created-threads
>>
>> ;)
>
> That is
On Aug 13, 2011, at 7:23 PM, Antoine Pitrou wrote:
> On Sat, 13 Aug 2011 19:08:40 -0400
> Doug Hellmann wrote:
>>
>> Charles McLaughlin of Atlassian has set up mirrors of the Mercurial
>> repositories hosted on python.org as part of the ongoing infrastructure
>> improvement work. These mirror
On Fri, Aug 12, 2011 at 3:58 AM, Antoine Pitrou wrote:
> This PEP is an attempt to foster a number of small incremental
> improvements in a future pickle protocol version. The PEP process is
> used in order to gather as many improvements as possible, because the
> introduction of a new protocol ve
On Sat, Aug 13, 2011 at 8:43 AM, Antoine Pitrou wrote:
> On Sat, 13 Aug 2011 09:08:16 -0400
> Guido van Rossum wrote:
>>
>> And, though mostly off-topic, the worst problem with C code, calling
>> back into Python, and the GIL that I have seen (several times):
>> Suppose you are calling some compl
On Sat, 13 Aug 2011 19:08:40 -0400
Doug Hellmann wrote:
>
> Charles McLaughlin of Atlassian has set up mirrors of the Mercurial
> repositories hosted on python.org as part of the ongoing infrastructure
> improvement work. These mirrors will give us a public fail-over repository in
> the event
Charles McLaughlin of Atlassian has set up mirrors of the Mercurial
repositories hosted on python.org as part of the ongoing infrastructure
improvement work. These mirrors will give us a public fail-over repository in
the event that hg.python.org goes offline unexpectedly, and also provide
fea
On Sat, 13 Aug 2011 09:08:16 -0400
Guido van Rossum wrote:
>
> And, though mostly off-topic, the worst problem with C code, calling
> back into Python, and the GIL that I have seen (several times):
> Suppose you are calling some complex C library that creates threads
> itself, where those threads
On Sat, Aug 13, 2011 at 2:12 AM, Stefan Behnel wrote:
> Guido van Rossum, 12.08.2011 23:38:
>>
>> On Fri, Aug 12, 2011 at 12:57 PM, Rene Nejsum wrote:
>>>
>>> I think I understand the background and need for GIL. Without it Python
>>> programs would have been cluttered with lock/synchronized state
11 matches
Mail list logo