python's OOP question

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


Neil Cerutti wrote:

> On 2006-10-18, neoedmund <neoedmund at gmail.com> wrote:
>> ivestgating the web, i found something similiar with my approch:
>> http://en.wikipedia.org/wiki/Duck_typing
>> "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.

Peter




More information about the Python-list mailing list