Bug in psyco ?

G

George Sakkis

import inspectTraceback (most recent call last):
File "<stdin>", line 1, in ?
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 795, in stack
return getouterframes(sys._getframe(1), context)
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 776, in
getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 744, in
getframeinfo
raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object
 
M

Michael Hudson

George Sakkis said:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 795, in stack
return getouterframes(sys._getframe(1), context)
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 776, in
getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/tmp/python.4228/usr/lib/python2.3/inspect.py", line 744, in
getframeinfo
raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object

Mentioning this on the psyco-devel list has a rather higher
probability of attracting a useful response...

I'm not sure there's anything that can really be done in this
situation, though, except making inspect less anal.

Cheers,
mwh
 
I

Iwan van der Kleyn

George said:
Traceback (most recent call last):
TypeError: arg is not a frame or traceback object

Inspect is too rigid. It crashed because it cannot handle Psyco's
emulated frame object. Ie: it's a feature....

http://psyco.sourceforge.net/psycoguide/bugs.html

"...Frame objects are emulated. The sys. getframe function returns an
instance of a custom class which emulates the standard frame objects’
behavior as much as possible..."

Regards,

Iwan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,051
Members
47,656
Latest member
rickwatson

Latest Threads

Top