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 terry.reedy
Recipients Michael Crouch, docs@python, eryksun, felipevolpone, georg.brandl, r.david.murray, terry.reedy
Date 2015-10-26.22:13:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445897594.41.0.861751864625.issue25432@psf.upfronthosting.co.za>
In-reply-to
Content
David, if you are suggesting that the initial negative clause of "If classinfo is not a class (type object)" is not needed, I agree.  If classinfo is a tuple, is is not a class.  'list of types' has to be 'tuple of types'. I think 'match' needs to be expanded to 'is an instance of'. How about

"If classinfo is a tuple of type objects (or recursively, other such tuples), return true if object is an instance of any of the types.

This leaves out the left to right ordering of the tests, but I think that is implied by how Python generally works.  Short circuiting certainly is.
History
Date User Action Args
2015-10-26 22:13:14terry.reedysetrecipients: + terry.reedy, georg.brandl, r.david.murray, docs@python, eryksun, Michael Crouch, felipevolpone
2015-10-26 22:13:14terry.reedysetmessageid: <1445897594.41.0.861751864625.issue25432@psf.upfronthosting.co.za>
2015-10-26 22:13:14terry.reedylinkissue25432 messages
2015-10-26 22:13:14terry.reedycreate