[issue1497532] C API to retain GIL during Python Callback

2009-03-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1497532] C API to retain GIL during Python Callback

2009-03-26 Thread Martin Gfeller Martin Gfeller
Martin Gfeller Martin Gfeller added the comment: Lukas, I'm afraid to admit you're right :-;. Assuming that the Python code called under the "not release the GIL" regime would not do anything that could be potentially blocking is probably dangerous and could result

[issue1497532] C API to retain GIL during Python Callback

2009-03-22 Thread Lukas Lueg
Lukas Lueg added the comment: I'm not sure if such a API is feasible. The very nature of Python makes it impossible to tell in advance what the interpreter will do when getting called. This is even true for simple functions - think of your function getting decorated... Let's consider the follow

[issue1497532] C API to retain GIL during Python Callback

2009-03-20 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma