On Mon, Mar 23, 2020 at 8:00 PM Steven D'Aprano <st...@pearwood.info> 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 <st...@pearwood.info> 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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/OBZ5GTR3BIETSGVBADFHO5RVCCS4XXEH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to