File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ Dead ends in Python!
66
77Since all (builtin) sets in Python are finite, all complements of the builtin sets would be infinite.
88
9- Practically, one cannot iterate over an infinite set... so no __ iter__ method.
9+ Practically, one cannot iterate over an infinite set... so no ` __iter__ ` method.
1010Unless maybe we have the complement of the complement of a finite set, but then we'd just have the set.
1111
12- Also, since len() must return an integer, and a len(SetComplement([ ] )) would be infinity,
13- and you cannot represent infinity as an integer type (well, maybe you can by subclassing ints ...)
14- but it's not very practical. Anyways, no __ len__ method.
12+ Also, since ` len() ` must return an integer, and a ` len(SetComplement([])) ` would be infinity,
13+ and you cannot represent infinity as an integer type (well, maybe you can by subclassing ` int ` ...)
14+ but it's not very practical. Anyways, no ` __len__ ` method.
1515
1616This object is interesting theoretically, but has little practical use.
1717
You can’t perform that action at this time.
0 commit comments