13 lines · 547 B · Text
RawDownload
Examples of classes that implement special operators (see reference manual): Complex.py	Complex numbersDates.py	Date manipulation package by Tim PetersDbm.py		Wrapper around built-in dbm, supporting	arbitrary valuesRange.py	Example of a generator: re-implement built-in range()Rat.py		Rational numbersRev.py		Yield the reverse of a sequenceVec.py		A simple vector classbitvec.py	A bit-vector class by Jan-Hein B\"uhrman (For straightforward examples of basic class features, such as use ofmethods and inheritance, see the library code.)