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 _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com