Puzzling difference between lists and tuples

Chris Angelico rosuav at gmail.com
Mon Sep 21 08:20:33 EDT 2020


On Mon, Sep 21, 2020 at 10:14 PM Serhiy Storchaka <storchaka at gmail.com> wrote:
>
> 18.09.20 03:55, Chris Angelico пише:
> > On Fri, Sep 18, 2020 at 10:53 AM Grant Edwards
> > <grant.b.edwards at gmail.com> wrote:
> >> Yea, the syntax for tuple literals has always been a bit of an ugly
> >> spot in Python.  If ASCII had only had one more set of open/close
> >> brackets...
> >
> > ... then I'd prefer them to be used for sets, actually. I think the
> > set/dict collision is more weird than the tuple/grouping one.
> >
> > Now, if only ASCII had *two* more sets of open/close brackets...
>
> Then I would use them for sets and frozensets.
>

Ahem. AMONG the needs for additional types of brackets are such
diverse types as.........

ChrisA


More information about the Python-list mailing list