Message91088
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) |
|
Date |
User |
Action |
Args |
2009-07-30 09:33:15 | amyodov | set | recipients:
+ amyodov |
2009-07-30 09:33:15 | amyodov | set | messageid: <1248946395.45.0.703572208084.issue6601@psf.upfronthosting.co.za> |
2009-07-30 09:33:14 | amyodov | link | issue6601 messages |
2009-07-30 09:33:13 | amyodov | create | |
|