Serhiy Storchaka added the comment:
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.
----------
stage: -> commit review
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25974>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com