[Python-3000] Generic function PEP won't make it in time
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 26 02:47:19 CEST 2007
Emin.shopper Martinian.shopper wrote:
> Imagine you have a program that takes a long time to run. If you use
> duck-typing or similar ideas you may watch the program run for hours or
> days and then raise an AttributeError or NotImplemented error because a
> derived class didn't implement a required method.
You should have a way of exercising the program with a set of
small test cases before using it for big runs. You need that
anyway, because there are many other ways the program could
fail at run-time that wouldn't be caught by this feature.
This is just another version of the argument for static type
checking, and all the same counter-arguments apply to it.
--
Greg
More information about the Python-3000
mailing list