psyco changes the return value of type()
Walter Dörwald
walter at livinglogic.de
Thu Oct 17 05:27:50 EDT 2002
Xiao-Qin Xia wrote:
> Hi, there,
>
> psyco changes the return value of type():
>
> [...]
>
> Obviously, type() has different return values, when psyco exists or not.
> That is really not so good news for codes need to run on different
> situation, with or without psyco. Any way to avoid this?
This is documented in
http://psyco.sourceforge.net/userguide.html:
"""
With Python 2.2, all classes defined after the line:
from psyco.classes import *
automatically become a new-style class; its methods and the methods of
the inheriting classes are all automatically bound.
"""
Bye,
Walter Dörwald
More information about the Python-list
mailing list