filbert icon indicating copy to clipboard operation
filbert copied to clipboard

Non-empty list constructor should not return empty list

Open dideler opened this issue 10 years ago • 1 comments

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.

dideler avatar Dec 27 '14 12:12 dideler

Currently it seems the list() constructor is broken, probably by Esper? Just says Dont do this yet.

screenshot 2016-05-23 08 51 23

nwinter avatar May 23 '16 15:05 nwinter