Convert type() to string?

Inyeol Lee inyeol.lee at siimage.com
Tue Nov 12 18:43:34 EST 2002


type('test').__name__

Inyeol...

On Tue, Nov 12, 2002 at 06:32:13PM -0500, Adonis wrote:
> Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> t = type('test')
> >>> t
> <type 'str'>
> 
> then just parse the text.
> not the best way but someone will respond with better code.
> 
> hope this helps.
> 
> Adonis




More information about the Python-list mailing list