[issue41953] Confusing error message of 50,*2

wyz23x2 report at bugs.python.org
Tue Oct 6 01:19:32 EDT 2020


wyz23x2 <wyz23x2 at 163.com> added the comment:

>>> '1', * 2
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
TypeError: 'int' object is not iterable

Update: 2.__iter__ seems to be called.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41953>
_______________________________________


More information about the Python-bugs-list mailing list