Function parameter type safety?

Robert Dailey rcdailey at gmail.com
Thu Jul 12 23:52:43 CEST 2007


Hi,

Is there a way to force a specific parameter in a function to be a
specific type? For example, say the first parameter in a function of
mine is required to be a string. If the user passes in an integer, I
want to notify them that they should pass in a string, not an integer.




More information about the Python-list mailing list