does lack of type declarations make Python unsafe?

Gerhard Häring gh at
Mon Jun 16 16:15:46 CEST 2003

Peter Hansen wrote:
> To take up Alex' point: passing in the wrong type is probably much
> less common than, say, using the wrong value, or mixing up the order
> of arguments (and many functions take a bunch of arguments of the
> same type, so type-checking doesn't help there!).

There is something that helps with confusing the order of arguments: 
*Only* use named parameters.

I've heard of Ada 95 projects that mandate this style for 
procedure/function calls.

-- Gerhard

More information about the Python-list mailing list