typechecks: just say no! (was Re: Determining Types)

Skip Montanaro skip at pobox.com
Mon Sep 3 13:32:02 EDT 2001


    Emile> Couldn't you always coerce it?
    Emile> str('hello')
    Emile> str(123)

Yes, I could, but the problem arises quite rarely.  It seems to me that
checking the type is going to generally be faster than always coercing.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list