I happened to look at PEP 276 and was struck by the thought that PEP 276 is really an implementation of the well-known set-theoretic construction of the natural numbers that defines each natural number as the set of all smaller ones. In other words, it defines 0 as the empty set, 1 as the set whose only element is 0, 2 as the set whose elements are 0 and 1, and so on. Indeed, under PEP 276, sets.Set(42) would be a set with 42 elements that would be exactly the canonical representation of 42.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4