On Mon, Aug 29, 2011 at 5:20 AM, Antoine Pitrou <solipsis@pitrou.net> wrote:
On Sun, 28 Aug 2011 09:43:33 -0700
Guido van Rossum <guido@python.org> wrote:
>
> This sounds like a very interesting idea to pursue, even if it's late,
> and even if it's experimental, and even if it's possible to cause
> deadlocks (no news there). I propose that we offer a C API in Python
> 3.3 as well as an extension module that offers the proposed decorator.
> The C API could then be used to implement alternative APIs purely as
> extension modules (e.g. would a deadlock-detecting API be possible?).

We could offer the C API without shipping an extension module ourselves.
I don't think we should provide (and maintain!) a Python API that helps
users put themselves in all kind of nasty situations. There is enough
misunderstanding around the GIL and multithreading already.

+1