1
Vote

Unhelpful error message for sequence multiplication by non-int

description

IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.269 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
[None] * '2'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: object cannot be interpreted as an index
 
Compare this to what I get from cPython:
TypeError: can't multiply sequence by non-int of type 'str'

comments