This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: inspect.py sys._getframe patch for Python 2.6
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: michael.foord Nosy List: michael.foord
Priority: normal Keywords: needs review, patch

Created on 2009-07-26 20:21 by michael.foord, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
inspect.patch michael.foord, 2009-07-26 20:21
Messages (3)
msg90955 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-07-26 20:21
Patch for inspect.py so that it will import correctly even if
sys._getframe is unavailable. 

Without this patch inspect can't be imported under IronPython 2.6
(breaking basic features like help) when started without Python stack
frame support.

The same fix is required on trunk.
msg90956 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-07-26 20:27
hmm... the lambda should probably take an argument like sys._getframe.
msg90959 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-07-26 21:12
Committed in revision 74215 & revision 74216.
History
Date User Action Args
2022-04-11 14:56:51adminsetgithub: 50830
2009-07-26 21:12:59michael.foordsetstatus: open -> closed
keywords: patch, patch, needs review
resolution: accepted
messages: + msg90959
2009-07-26 20:27:20michael.foordsetkeywords: patch, patch, needs review

messages: + msg90956
2009-07-26 20:21:34michael.foordcreate