Georg Brandl <[EMAIL PROTECTED]> added the comment:

Paddy: IMO hasattr() is the "if it quacks like a duck" part of
duck-typing. It e.g. allows testing "hasattr(x, 'write')" to see if it's
a writable file-like object, and doing something else otherwise.

Benjamin: ABCs are not duck-typing since they involve isinstance() anyway.

----------
resolution:  -> works for me
status: open -> pending

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3214>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to