Message273427
Yes, although it can be viewed as a bugfix, it's impossible on Python 2. We _can_ do it on Python 2 too, with
def __new__(cls, numerator=0, denominator=None, *empty, _normalize=True):
if empty:
raise TypeError('too many positional arguments')
...
but I'm not interested in it [and honestly, I'm sick of uglifying my code just to be able to run it on Py2]. Also, Mark Dickinson said (http://bugs.python.org/issue27539#msg273282) it shouldn't even be changed on Py3.5, so surely then it shouldn't be changed on Py2.7. :-)
I think no deprecation is needed: it isn't (https://docs.python.org/3.5/library/fractions.html?highlight=fraction#fractions.Fraction), and as far as I know has never been, documented. |
|
Date |
User |
Action |
Args |
2016-08-23 09:07:53 | veky | set | recipients:
+ veky, josh.r |
2016-08-23 09:07:53 | veky | set | messageid: <1471943273.19.0.308131911923.issue27832@psf.upfronthosting.co.za> |
2016-08-23 09:07:53 | veky | link | issue27832 messages |
2016-08-23 09:07:52 | veky | create | |
|