[Q] Type checking...
Olivier Deckmyn
olivier.deckmyn at mail.dotcom.fr
Mon Jul 19 08:07:02 EDT 1999
Gloups !!!
There is no "nicer" way to know the type of an instance in Python
!!???!!!???
I can't make the "is" operator work as I would like to :(
Looks quite strange to me :-(
thx for your help anyway Klaus..
>
> MAGIC="I'm in class A :-)"
>
> class ClassA:
> def __init__(self):
> self.magic = MAGIC
> :
> # end def __init__
> # end class Class A
>
More information about the Python-list
mailing list