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 amyodov
Recipients amyodov
Date 2009-07-30.09:33:13
SpamBayes Score 5.848322e-12
Marked as misclassified No
Message-id <1248946395.45.0.703572208084.issue6601@psf.upfronthosting.co.za>
In-reply-to
Content
Occurs in 2.6, doesn't occur in 3.1.
Example:

Python 2.6.2+ (release26-maint, Jun 23 2009, 07:08:39)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from fractions import Fraction
>>> Fraction(Fraction(3,5), Fraction(1,2))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/fractions.py", line 99, in __new__
    numerator = operator.index(numerator)
TypeError: 'Fraction' object cannot be interpreted as an index


Compare:

Python 3.1 (r31:73572, Jul 23 2009, 23:41:26)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from fractions import Fraction
>>> Fraction(Fraction(3,5), Fraction(1,2))
Fraction(6, 5)
History
Date User Action Args
2009-07-30 09:33:15amyodovsetrecipients: + amyodov
2009-07-30 09:33:15amyodovsetmessageid: <1248946395.45.0.703572208084.issue6601@psf.upfronthosting.co.za>
2009-07-30 09:33:14amyodovlinkissue6601 messages
2009-07-30 09:33:13amyodovcreate