python's OOP question

Peter Otten __peter__ at
Wed Oct 18 14:14:44 CEST 2006

Neil Cerutti wrote:

> On 2006-10-18, neoedmund <neoedmund at> wrote:
>> ivestgating the web, i found something similiar with my approch:
>> "Duck-typing avoids tests using type() or isinstance(). Instead, it
>> typically employs hasattr() tests"
> It's pity it didn't get called quack typing. 

That's because the quacks prescribe static typing.


More information about the Python-list mailing list