Bug in psyco ?

Iwan van der Kleyn none at none.net
Thu Jun 17 11:02:56 EDT 2004


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



More information about the Python-list mailing list