Hi Guido, On Sun, Aug 28, 2011 at 6:43 PM, Guido van Rossum <gu...@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.
Very good idea. http://bugs.python.org/issue12850 The extension module, called 'stm' for now, is designed as an independent 3rd-party extension module. It should at this point not be included in the stdlib; for one thing, it needs some more testing than my quick one-page hacks, and we need to seriously look at the deadlock issues mentioned here. But the patch to ceval.c above looks rather straightforward to me and could, if no subtle issue is found, be included in the standard CPython. A bientôt, Armin. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com