Convert type() to string?

Chad Netzer cnetzer at mail.arc.nasa.gov
Tue Nov 12 19:16:13 EST 2002


On Tuesday 12 November 2002 15:22, Robert Oschler wrote:

> print padstr + type(x)
>
> won't work because type() does not return a string.  What's a good way to
> do this?

print padstr + str(type(x))

??

-- 

Chad Netzer
cnetzer at mail.arc.nasa.gov




More information about the Python-list mailing list