Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-07 Thread Gregory P. Smith
To get at the Python thread state from a signal handler (using 2.7 as a reference here; but i don't believe 3.4 has changed this part much) you need to modify the interpreter to expose pystate.c's "autoTLSkey" and thread.c's "struct key" as well as "keyhead" and "keymutex". >From there, in your si

Re: [Python-Dev] installing python 2.7.9 on a Mac

2015-02-07 Thread Ned Deily
In article <201502070539.t175dmcj003...@fido.openend.se>, Laura Creighton wrote: > webmaster just got mail from a novice who is trying to learn Python in > an introductory class. She got a "The version of Tcl/Tk (8.5.7) in > use may be unstable" message. > > I think that the download page shou

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-07 Thread Greg Ewing
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 outsi

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-07 Thread Xavier de Gaye
On 02/06/2015 11:48 PM, Francis Giraldeau wrote: > 2015-02-06 6:04 GMT-05:00 Armin Rigo: > > Hi, > > On 6 February 2015 at 08:24, Maciej Fijalkowski mailto:fij...@gmail.com>> wrote: > > I don't think it's safe to assume f_code is properly filled by the > > time you might read it, d

Re: [Python-Dev] Encoding of PyFrameObject members

2015-02-07 Thread Maciej Fijalkowski
On Sat, Feb 7, 2015 at 12:48 AM, Francis Giraldeau wrote: > 2015-02-06 6:04 GMT-05:00 Armin Rigo : > >> Hi, >> >> On 6 February 2015 at 08:24, Maciej Fijalkowski wrote: >> > I don't think it's safe to assume f_code is properly filled by the >> > time you might read it, depending a bit where you f