Examples of classes that implement special operators (see reference manual): Complex.py Complex numbers Dates.py Date manipulation package by Tim Peters Dbm.py Wrapper around built-in dbm, supporting arbitrary values Range.py Example of a generator: re-implement built-in range() Rev.py Yield the reverse of a sequence Vec.py A simple vector class bitvec.py A bit-vector class by Jan-Hein B\"uhrman (For straightforward examples of basic class features, such as use of methods and inheritance, see the library code.)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Complex.py | File | 9.72 KB | 0644 |
|
| Complex.pyc | File | 9.79 KB | 0644 |
|
| Complex.pyo | File | 9.79 KB | 0644 |
|
| Dates.py | File | 7.64 KB | 0644 |
|
| Dates.pyc | File | 7.16 KB | 0644 |
|
| Dates.pyo | File | 7.16 KB | 0644 |
|
| Dbm.py | File | 1.54 KB | 0644 |
|
| Dbm.pyc | File | 2.46 KB | 0644 |
|
| Dbm.pyo | File | 2.46 KB | 0644 |
|
| README | File | 522 B | 0644 |
|
| Range.py | File | 3.05 KB | 0644 |
|
| Range.pyc | File | 4 KB | 0644 |
|
| Range.pyo | File | 4 KB | 0644 |
|
| Rev.py | File | 2 KB | 0644 |
|
| Rev.pyc | File | 2.8 KB | 0644 |
|
| Rev.pyo | File | 2.8 KB | 0644 |
|
| Vec.py | File | 1.33 KB | 0644 |
|
| Vec.pyc | File | 2.75 KB | 0644 |
|
| Vec.pyo | File | 2.75 KB | 0644 |
|
| bitvec.py | File | 10.25 KB | 0644 |
|
| bitvec.pyc | File | 10.05 KB | 0644 |
|
| bitvec.pyo | File | 10.05 KB | 0644 |
|