If you are interested in reading the code in some of these modules, to learn how they work (the more Python you know the better), you can either use Eclipse to examine the .py files in the courselib folder (but don't change them!) or click the link (second on the upper-right of the documentation page) which switches the browser to dispaly the .py file.
Python Module | Description |
---|---|
dice |
A class modeling an ensemble of dice |
driver |
A driver module for testing/debugging other modules/classes |
equivalence |
A class implementing the equivalence class data type |
goody |
A module defining miscellaneous useful functions (goodies) |
graph |
A class implementing the graph data type (operating on nodes and edges) |
modular |
A class implementing the modular number data type |
predicate |
A module defining predicate functions: i.e., def p(x : int) -> bool |
priorityqueue |
A class implementing the queue data type |
prompt |
A module defining functions that prompt the user for values |
queue |
A class implementing the queue data type |
stack |
A class implementing the stack data type |
stopwatch |
A class modeling a stopwatch (useful for timing code) |