filbert
filbert copied to clipboard
Non-empty list constructor should not return empty list
list(1, 2, 3) should give a TypeError.
>>> list(1, 2, 3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: list() takes at most 1 argument (3 given)
>>> list((1, 2, 3))
[1, 2, 3]
In filbert, list(1, 2, 3) evaluates to an empty list.
Note that in filbert list() correctly evaluates to an empty list and list((1, 2,3)) to a non-empty list.
Currently it seems the list() constructor is broken, probably by Esper? Just says Dont do this yet.