[issue26154] Add private _PyThreadState_FastGet() to get the current thread state

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9461f1e0559 by Victor Stinner in branch '3.5': Add _PyThreadState_UncheckedGet() https://hg.python.org/cpython/rev/f9461f1e0559 New changeset d4f13c9a2b07 by Victor Stinner in branch 'default': Merge 3.5 https://hg.python.org/cpython/rev/d4f13c9a2b

[issue26154] Add private _PyThreadState_FastGet() to get the current thread state

2016-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Overall +1 to this private API. I like the UncheckedGet name better than FastGet but don't really care what the name is so long as it keeps this property: It must be non-blocking and safe to call from a signal handler. Returning NULL in the event the value

[issue26154] Add private _PyThreadState_FastGet() to get the current thread state

2016-01-19 Thread Nathaniel Smith
Nathaniel Smith added the comment: Name should be _PyThreadState_UncheckedGet -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-lis

[issue26154] Add private _PyThreadState_FastGet() to get the current thread state

2016-01-19 Thread STINNER Victor
New submission from STINNER Victor: The issue #25150 modified pystate.h to hide _PyThreadState_Current. Sadly, this change broke the vmprof project: https://mail.python.org/pipermail/python-dev/2016-January/142767.html Attached patches adds a new private _PyThreadState_FastGet() function to get