New submission from Julian Berman <[email protected]>:

>>>> int([123])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type for unary trunc: 'list'

compared to CPython:

>>> int([123])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int() argument must be a string or a number, not 'list'

No idea what a unary trunc operator is :).

----------
messages: 6326
nosy: Julian, pypy-issue
priority: bug
status: unread
title: ints raise strange TypeErrors for incorrect types

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1633>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to