top | item 44980944

(no title)

rand_r | 6 months ago

You can use “set()”. Introducing more weird special cases into the language is a bad direction for Python.

discuss

order

thayne|6 months ago

And you can use dict() for an empty dictionary, and list() for an empty list.

mrguyorama|6 months ago

For reasons I don't think I understand, using the functions is "discouraged" because "someone might muck with how those functions work" and the python world, in it's perfect wisdom responded "Oh of course" instead of "That's so damn stupid, don't do that because it would be surprising to people who expect built in functions to do built in logic"

tpm|6 months ago

No no no, it's a great direction towards becoming the new Perl.