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 serhiy.storchaka
Recipients Jim Fasarakis-Hilliard, georg.brandl, pitrou, rhettinger, serhiy.storchaka
Date 2017-05-10.08:31:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494405078.14.0.497970690961.issue30230@psf.upfronthosting.co.za>
In-reply-to
Content
Jim doesn't propose to remove fast test, it proposes to add a test for fast path for avoiding invoking __subclasscheck__ (this is slow). This can change semantic, but isinstance() already contains such fast path.

This is similar to testing "elem is seq[i]" before "elem == seq[i]" when search in sequences. This optimization changes semantic for NaNs. Does a "Not-A-Class" class which is not a subclass of itself (issubclass(C, C) returns False) makes any sense?
History
Date User Action Args
2017-05-10 08:31:18serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, rhettinger, pitrou, Jim Fasarakis-Hilliard
2017-05-10 08:31:18serhiy.storchakasetmessageid: <1494405078.14.0.497970690961.issue30230@psf.upfronthosting.co.za>
2017-05-10 08:31:18serhiy.storchakalinkissue30230 messages
2017-05-10 08:31:18serhiy.storchakacreate