Package grizzled :: Module history
[frames] | no frames]

Module history

grizzled.history provides a command line history capability that provides the same interface across different history implementations. Currently, it supports three history implementations:

The History class provides the interface and some common methods for all history operations.

To get the appropriate History implementation for the current platform, simply call the get_history() factory method.

$Id$

Classes
  HistoryError
Thrown to indicate history errors, when another exception won't do.
  History
Base class for history implementations.
Functions
History
get_history(verbose=True)
Factory method to create an appropriate History object.
Variables
  DEFAULT_MAXLENGTH = 512
Function Details

get_history(verbose=True)

 
Factory method to create an appropriate History object.
Parameters:
  • verbose (bool) - True to display a message on standard output about what history management mechanism is being used.
Returns: History
the History object