This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: The empty set should be a subset of the empty set
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, inducer
Priority: normal Keywords:

Created on 2006-11-17 05:50 by inducer, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg30569 - (view) Author: Andreas Kloeckner (inducer) Date: 2006-11-17 05:50
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> set([]) < set([1])
True
>>> set([]) < set([])
False

The last expression should evaluate to True to be mathematically correct.
msg30570 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-11-17 06:34
To get the mathematical "subset or equal" operator, use "<=".
"<" is "is a strict subset".

Closing as "works for me".
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44243
2006-11-17 05:50:53inducercreate