[Patches] [ python-Patches-421709 ] Access { thread id : frame } dict
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 05 May 2001 13:30:27 -0700
Patches item #421709, was updated on 2001-05-05 13:30
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=421709&group_id=5470
Category: core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: John D. Heintz (jheintz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Access { thread id : frame } dict
Initial Comment:
This patch adds a new function sys._getframes() that
returns a dictionary mapping from thread id to
current frame object.
This is very useful when diagnosing deadlock issues
in Python code.
The new C code function is purely additive except for
modifying the PyThreadState struct (adding a long
thread_ident) and modifying PyThreadState_New()
function to set this new long.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=421709&group_id=5470