I l@ve RuBoard Previous Section Next Section

14.7 The readline Module

(Optional) The readline module, shown in Example 14-9, activates input editing on Unix, using the GNU readline library (or compatible).

Once imported, this module provides improved command-line editing, as well as command history. It also enhances the input and raw_input functions.

Example 14-9. Using the readline Module
File: readline-example-1.py

import readline # activate readline editing
    I l@ve RuBoard Previous Section Next Section