builtin set literal

Alan Isaac aisaac at american.edu
Tue Feb 20 14:03:58 EST 2007


Paul Rubin wrote:
> There's even a sentiment in some pythonistas to get rid of the [] and {}
> notations for lists and dicts, using list((1,2,3)) and dict((1,2),(3,4))
> for [1,2,3] and {1:2, 3:4} respectively.

Well then for consistency they must want tuple((1,2,3)) for (1,2,3).
Oh oh, that must be tuple(tuple((1,2,3))), no wait ...

Alan Isaac





More information about the Python-list mailing list