This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients berker.peksag, jaraco, orsenthil, vajrasky
Date 2013-10-01.21:14:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380662046.12.0.483735824842.issue19094@psf.upfronthosting.co.za>
In-reply-to
Content
Vajrasky, you're right. Comparing against type(obj) is an anti-pattern. isinstance is better. Duck typing is even better (in many cases).
History
Date User Action Args
2013-10-01 21:14:06jaracosetrecipients: + jaraco, orsenthil, berker.peksag, vajrasky
2013-10-01 21:14:06jaracosetmessageid: <1380662046.12.0.483735824842.issue19094@psf.upfronthosting.co.za>
2013-10-01 21:14:06jaracolinkissue19094 messages
2013-10-01 21:14:05jaracocreate