blob: cca75248919319c442e43252773fe277ae819856 [file] [log] [blame]
Guido van Rossum7565b931993-12-17 14:23:52 +00001Examples of classes that implement special operators (see reference manual):
Guido van Rossume8769491992-08-13 12:14:11 +00002
3Complex.py Complex numbers
Guido van Rossum0a2fa751993-10-30 12:39:49 +00004Dates.py Date manipulation package by Tim Peters
Guido van Rossume8769491992-08-13 12:14:11 +00005Dbm.py Wrapper around built-in dbm, supporting arbitrary values
6Range.py Example of a generator: re-implement built-in range()
7Rat.py Rational numbers
Guido van Rossum0a2fa751993-10-30 12:39:49 +00008Rev.py Yield the reverse of a sequence
Guido van Rossume8769491992-08-13 12:14:11 +00009Vec.py A simple vector class
Guido van Rossumed49c5e1993-10-27 09:29:01 +000010bitvec.py A bit-vector class by Jan-Hein B\"uhrman
Guido van Rossume8769491992-08-13 12:14:11 +000011
12(For straightforward examples of basic class features, such as use of
13methods and inheritance, see the library code -- especially the window
14modules are full of them.)