blob: 4efd3160bf55be40a77649989e53490a28b0b993 [file] [log] [blame]
Guido van Rossume8769491992-08-13 12:14:11 +00001Examples of classes that implement special operators (see class.doc):
2
3Complex.py Complex numbers
4Dbm.py Wrapper around built-in dbm, supporting arbitrary values
5Range.py Example of a generator: re-implement built-in range()
6Rat.py Rational numbers
7Vec.py A simple vector class
Guido van Rossumed49c5e1993-10-27 09:29:01 +00008bitvec.py A bit-vector class by Jan-Hein B\"uhrman
Guido van Rossume8769491992-08-13 12:14:11 +00009
10(For straightforward examples of basic class features, such as use of
11methods and inheritance, see the library code -- especially the window
12modules are full of them.)