[Python-Dev] Software Transactional Memory for Python
Antoine Pitrou
solipsis at pitrou.net
Mon Aug 29 14:20:15 CEST 2011
On Sun, 28 Aug 2011 09:43:33 -0700
Guido van Rossum <guido at 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.
Regards
Antoine.
More information about the Python-Dev
mailing list