PEP0238 lament

Paul Prescod paulp at ActiveState.com
Wed Jul 25 19:07:19 EDT 2001


Stephen Horne wrote:
> 
> On Mon, 23 Jul 2001 17:23:18 -0700, Paul Prescod
> <paulp at ActiveState.com> wrote:
> 
> >It is very common to pass floats to functions that expect integers and
> >vice versa without really thinking about it. It is *especially* common
> >to pass integers to functions that expect floats.
> 
> And in my mind this is the problem, not division. The traditional
> solutions to the problem of bad inputs are called *validation* and
> *documentation*.

So rather than fix the language to reduce mistakes we should impose more
discipline on programmers. That sounds like a C or Perl solution, not a
Python solution.
-- 
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook




More information about the Python-list mailing list