[Python-ideas] syntax for set

Stefan Behnel stefan_ml at behnel.de
Tue Nov 16 12:59:31 CET 2010


average, 16.11.2010 04:16:
> The *only* glitch is the lack of an empty set notation. The idea of
>
>> dict() == {:}; set()=={};
>> which would be the obvious choice if starting fresh,
>> was considered but rejected by Guido as too disruptive
>> and introducing another barrier between Python 2 and 3.
>
> I have to say that the *lack*of those two suggested literals are a sore
> point for me (that along with the fact that dict doesn't inherit from set).
> Call me a nit-picker, but (without them) they are like sand in the vast
> gearbox of my mind when using python3: small but disruptive.  I would argue
> that the lack of them is what is *preventing* the adoption of python3.

I doubt that.

Stefan




More information about the Python-ideas mailing list