duck-type-checking?

Craig Allen callen314 at gmail.com
Thu Nov 13 15:10:50 EST 2008


> since both are equally informative when it comes to tracing the faulty
> assignment.
>

steve, they are not equally informative, the assertion is designed to
fire earlier in the process, and therefore before much mischief and
corruption can be done compared to later, when you happen to hit the
missing attribute.



More information about the Python-list mailing list