typename

Neal Becker ndbecker2 at gmail.com
Tue Jan 29 14:06:05 EST 2008


I want python code that given an instance of a type, prints the type name,
like:

typename (0) -> 'int'

I know how to do this with the C-api, (o->tp_name), but how do I do it from
python?

type(0) prints "<type 'int'>", not really what I wanted.




More information about the Python-list mailing list