Stefan Behnel added the comment:

Updated patch - there is a somewhat hidden attempt in the code to keep 
nominator and denominater plain int values, not subtypes. That means that it's 
safer to restrict the optimisation to plain ints as well, which should still 
hit >95% of the use cases.

----------
Added file: http://bugs.python.org/file36688/special_case_int2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22464>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to