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 belopolsky, johnwalker, mark.dickinson, python-dev, rhettinger, serhiy.storchaka, skrah, steven.daprano, terry.reedy
Date 2015-12-29.13:29:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451395744.38.0.0959383599787.issue25974@psf.upfronthosting.co.za>
In-reply-to
Content
LGTM.

I haven't tested that "type(x) is float or type(x) is Decimal" is faster than alternatives ("type(x) in (float, Decimal)", or "isinstance(x, (float, Decimal))", or "hasattr(x, 'as_integer_ratio')") and believe you have tested this.
History
Date User Action Args
2015-12-29 13:29:04serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, terry.reedy, mark.dickinson, belopolsky, steven.daprano, skrah, python-dev, johnwalker
2015-12-29 13:29:04serhiy.storchakasetmessageid: <1451395744.38.0.0959383599787.issue25974@psf.upfronthosting.co.za>
2015-12-29 13:29:04serhiy.storchakalinkissue25974 messages
2015-12-29 13:29:04serhiy.storchakacreate