type-checking / type() function

Simon Brunning SBrunning at trisystems.co.uk
Thu Aug 22 15:21:35 CEST 2002


> From:	Ben S [SMTP:newsgroups2002 at thedarkness.fsnet.co.uk]
> How can I implement rudimentary type-checking in the functions where I
> need it? (Where user Python code passes parameters to my Python code,
> for example.) I figure the type() function is what I need, but I can't
> find much information on what exactly it returns, and 'InstanceType'
> isn't specific enough. Is there a way of getting the class name from an
> instance?
 
You might want to look at Grouch -
<http://www.mems-exchange.org/software/grouch/>.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list