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

Skip Montanaro skip at pobox.com
Mon Sep 3 19:32:02 CEST 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)

More information about the Python-list mailing list