On Jan 29, 2008 2:06 PM, Neal Becker <[EMAIL PROTECTED]> wrote:
> I want python code that given an instance of a type, prints the type name,
> like:
>
> typename (0) -> 'int'

typename = lambda x: type(x).__name__

-- 
Neil Cerutti <[EMAIL PROTECTED]>
-- 
http://mail.python.org/mailman/listinfo/python-list
  • typename Neal Becker
    • Re: typename Neil Cerutti

Reply via email to