Implicit conversion to boolean in if and while statements

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Sun Feb 10 18:06:57 CET 2013


Am 10.02.2013 12:37 schrieb Steven D'Aprano:

> So, in Python 4000, my vote is for set literals { } to create frozensets,
> and if you want a mutable set, you have to use the set() type directly.

4000 sounds about long future.

In the meanwhile, a new syntax element could be introduced fpr 
frozensets, such as {{ }} or something. (Although that might clutter 
with a set containing a set.)


Thomas



More information about the Python-list mailing list