Author georg.brandl
Recipients benjamin.peterson, georg.brandl, paddy3118
Date 2008-07-01.20:35:48
SpamBayes Score 0.0697386
Marked as misclassified No
Message-id <1214944549.52.0.855339021772.issue3214@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-07-01 20:35:49georg.brandlsetspambayes_score: 0.0697386 -> 0.0697386
recipients: + georg.brandl, paddy3118, benjamin.peterson
2008-07-01 20:35:49georg.brandlsetspambayes_score: 0.0697386 -> 0.0697386
messageid: <1214944549.52.0.855339021772.issue3214@psf.upfronthosting.co.za>
2008-07-01 20:35:48georg.brandllinkissue3214 messages
2008-07-01 20:35:48georg.brandlcreate