[pypy-issue] Issue #1934: Different Error message in pypy 2.4 vs CPython 2.7.8 when multiplying list by float using '*' (pypy/pypy)

Gerrat Rickert issues-reply at bitbucket.org
Thu Nov 27 21:49:21 CET 2014


New issue 1934: Different Error message in pypy 2.4 vs CPython 2.7.8 when multiplying list by float using '*'
https://bitbucket.org/pypy/pypy/issue/1934/different-error-message-in-pypy-24-vs

Gerrat Rickert:

The error type is the same, but the message is different.  I'm not sure if pypy is supposed to return the same error message or not, so my apologies for the noise if not.

in CPython 2.7.8:
>>> [3]*(3.0//2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can't multiply sequence by non-int of type 'float'
>>>

in pypy 2.4:
>>>> [3]*(3.0//2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'list' and 'float'





More information about the pypy-issue mailing list