cpython/Demo/classes
Guido van Rossum 0a2fa75a9c Added Dates.py and Rev.py 1993-10-30 12:39:49 +00:00
..
Complex.py
Dates.py Initial revision 1993-10-30 12:38:16 +00:00
Dbm.py Fix bug and use __init__ 1993-10-30 12:38:16 +00:00
README Added Dates.py and Rev.py 1993-10-30 12:39:49 +00:00
Range.py
Rat.py Add coercions 1993-10-27 09:28:23 +00:00
Rev.py Initial revision 1993-10-30 12:38:16 +00:00
Vec.py Initial revision 1992-08-13 12:14:11 +00:00
bitvec.py Initial revision 1993-10-27 09:27:13 +00:00
class.doc

README

Examples of classes that implement special operators (see class.doc):

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()
Rat.py		Rational numbers
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 -- especially the window
modules are full of them.)