469,327 Members | 1,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

Bug in psyco ?

>>> import inspect
inspect.stack() [(<frame object at 0xa119914>, '<stdin>', 1, '?', None, None)] import psyco
inspect.stack()

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
Jul 18 '05 #1
2 1407
"George Sakkis" <gs*****@rutgers.edu> writes:
import inspect
inspect.stack() [(<frame object at 0xa119914>, '<stdin>', 1, '?', None, None)] import psyco
inspect.stack()

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

--
You have run into the classic Dmachine problem: your machine has
become occupied by a malevolent spirit. Replacing hardware or
software will not fix this - you need an exorcist.
-- Tim Bradshaw, comp.lang.lisp
Jul 18 '05 #2
George Sakkis wrote:
import inspect
inspect.stack()
[(<frame object at 0xa119914>, '<stdin>', 1, '?', None, None)]
import psyco
inspect.stack()


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
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by KefX | last post: by
10 posts views Thread by William S. Perrin | last post: by
reply views Thread by Jeremy Sanders | last post: by
7 posts views Thread by Ivan Voras | last post: by
2 posts views Thread by Paulo da Silva | last post: by
3 posts views Thread by Dick Moores | last post: by
5 posts views Thread by Fausto Arinos Barbuto | last post: by
6 posts views Thread by danmcleran | last post: by
3 posts views Thread by a | last post: by
15 posts views Thread by Steve Bergman | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.