On Mon, Mar 23, 2020 at 8:00 PM Steven D'Aprano <[email protected]> wrote:
>
> On Sun, Mar 22, 2020 at 09:49:26PM -0700, Guido van Rossum wrote:
> > On Sun, Mar 22, 2020 at 6:51 PM Steven D'Aprano <[email protected]> wrote:
> >
> > > We might have a terminology issue here, since according to Wikipedia
> > > there is some dispute over whether or not to include the equality case
> > > in subset/superset:
> > >
> > > https://en.wikipedia.org/wiki/Subset
> > >
> > > For what it is worth, I'm in the school that subset implies proper subset
> > > [...]
> > >
> >
> > Wikipedia's pedantry notwithstanding, I don't think this is a useful
> > position *when talking about Python sets*, since Python's set's .issubset()
> > method returns True when the argument is the same set:
>
> But Python's subset *operator* returns False when the arguments are
> equal:
>
> py> {1} < {1}
> False
>
>>> {1} <= {1}
True
Python gives you two operators :)
ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/OBZ5GTR3BIETSGVBADFHO5RVCCS4XXEH/
Code of Conduct: http://python.org/psf/codeofconduct/