| 1 |
Examples of classes that implement special operators (see reference manual): |
| 2 |
|
| 3 |
Complex.py Complex numbers |
| 4 |
Dates.py Date manipulation package by Tim Peters |
| 5 |
Dbm.py Wrapper around built-in dbm, supporting arbitrary values |
| 6 |
Range.py Example of a generator: re-implement built-in range() |
| 7 |
Rev.py Yield the reverse of a sequence |
| 8 |
Vec.py A simple vector class |
| 9 |
bitvec.py A bit-vector class by Jan-Hein B\"uhrman |
| 10 |
|
| 11 |
(For straightforward examples of basic class features, such as use of |
| 12 |
methods and inheritance, see the library code.) |