Guido van Rossum | 7565b93 | 1993-12-17 14:23:52 +0000 | [diff] [blame] | 1 | Examples of classes that implement special operators (see reference manual): |
Guido van Rossum | e876949 | 1992-08-13 12:14:11 +0000 | [diff] [blame] | 2 | |
| 3 | Complex.py Complex numbers |
Guido van Rossum | 0a2fa75 | 1993-10-30 12:39:49 +0000 | [diff] [blame] | 4 | Dates.py Date manipulation package by Tim Peters |
Guido van Rossum | e876949 | 1992-08-13 12:14:11 +0000 | [diff] [blame] | 5 | Dbm.py Wrapper around built-in dbm, supporting arbitrary values |
| 6 | Range.py Example of a generator: re-implement built-in range() |
| 7 | Rat.py Rational numbers |
Guido van Rossum | 0a2fa75 | 1993-10-30 12:39:49 +0000 | [diff] [blame] | 8 | Rev.py Yield the reverse of a sequence |
Guido van Rossum | e876949 | 1992-08-13 12:14:11 +0000 | [diff] [blame] | 9 | Vec.py A simple vector class |
Guido van Rossum | ed49c5e | 1993-10-27 09:29:01 +0000 | [diff] [blame] | 10 | bitvec.py A bit-vector class by Jan-Hein B\"uhrman |
Guido van Rossum | e876949 | 1992-08-13 12:14:11 +0000 | [diff] [blame] | 11 | |
| 12 | (For straightforward examples of basic class features, such as use of |
| 13 | methods and inheritance, see the library code -- especially the window |
| 14 | modules are full of them.) |