Stack inspection fails in interpreter

Bug #540786 reported by Helge Stenström
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

A little program used to demonstrate introspection fails when run inside Emacs, using c-c c-c in python-mode.el. The same program works when run from the command line or from within python.el. It fails the same way with Python 2.3.4 on Linux and Python 2.5 on Cygwin on Windows.

The essence of what fails is probably:
   import inspect
   stack = inspect.stack()
   s = stack[1][4][0].strip()
where the last statement fails because the structure of stack is not what's expected.
(TypeError: 'NoneType' object is unsubscriptable)

Revision history for this message
Helge Stenström (h-stenstrom) wrote :
Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
Changed in python-mode:
status: New → Confirmed
Changed in python-mode:
milestone: none → 6.1
Changed in python-mode:
importance: Undecided → Medium
Changed in python-mode:
status: Confirmed → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.