A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-February/138064.html below:

[Python-Dev] Encoding of PyFrameObject members

[Python-Dev] Encoding of PyFrameObject members [Python-Dev] Encoding of PyFrameObject membersGreg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 7 22:34:03 CET 2015
Maciej Fijalkowski wrote:
> However, you can't access thread
> locals from signal handlers (since in some cases it mallocs, thread
> locals are built lazily if you're inside the .so, e.g. if python is
> built with --shared)

You might be able to use Py_AddPendingCall to schedule
what you want done outside the context of the signal
handler.

The call will be made by the main thread, though,
so if you need to access the frame of whatever thread
was running when the signal occured, you will have
to track down its PyThreadState somehow and get the
frame from there. Not sure what would be involved
in doing that.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4