super problem
Konstantin Veretennicov
kveretennicov at gmail.com
Sat Jun 25 11:16:41 EDT 2005
On 6/25/05, Uwe Mayer <merkosh at hadiko.de> wrote:
> AFAIK super only works with new-style classes, so I checked:
>
> >>> from qtcanvas import *
> >>> isinstance(QCanvasItem, object)
> True
AFAIK, this is not the right way to check for new-styledness:
>>> class X: "i'm an old-styler"
>>> isinstance(X(), object)
True
But this is:
>>> isinstance(X, type)
False
- kv
More information about the Python-list
mailing list