Author veky
Recipients josh.r, veky
Date 2016-08-23.09:07:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471943273.19.0.308131911923.issue27832@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-08-23 09:07:53vekysetrecipients: + veky, josh.r
2016-08-23 09:07:53vekysetmessageid: <1471943273.19.0.308131911923.issue27832@psf.upfronthosting.co.za>
2016-08-23 09:07:53vekylinkissue27832 messages
2016-08-23 09:07:52vekycreate