[Zope] Checking variable types in Python Script

Johan Carlsson [Torped] johanc@torped.se
Tue, 10 Sep 2002 10:08:56 +0200


At 20:41 2002-09-09 +0200, Dieter Maurer said:
>Johan Carlsson [Torped] writes:
>
>  > is there any special replacement for type checking
>There is "same_type(object,sample)". It tests whether "object"
>and "sample" are of the same type.

That would do the trick.

But I would like to have special type checking API in Python scripts.
E.g. isString, isTuple, isList, etc. That's my 5 cents anyway.

I would find that less confusing.  But that a whole different mailing list=
 :-)

Regards,
Johan Carlsson





--=20
Torped Strategi och Kommunikation AB
Johan Carlsson
johanc@torped.se

Mail:
Birkagatan 9
SE-113 36  Stockholm
Sweden

Visit:
V=E4stmannagatan 67, Stockholm, Sweden

Phone +46-(0)8-32 31 23
Fax +46-(0)8-32 31 83
Mobil +46-(0)70-558 25 24
http://www.torped.se
http://www.easypublisher.com