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'



_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to