
On Mon, Mar 23, 2020 at 8:00 PM Steven D'Aprano steve@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 steve@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