Package jazzparser :: Package utils :: Module interface
[hide private]
[frames] | no frames]

Module interface

source code

Generic interface utilities (e.g. interactive command-line processing).


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Functions [hide private]
 
boolean_input(prompt)
Displays a prompt with a yes/no choice.
source code
 
input_iterator(prompt)
Creates an iterator that will accept command line input indefinitely and terminate when Ctrl+D is received.
source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

boolean_input(prompt)

source code 

Displays a prompt with a yes/no choice. Returns True is the user selects yes, False otherwise.

input_iterator(prompt)

source code 

Creates an iterator that will accept command line input indefinitely and terminate when Ctrl+D is received.

The iterator uses raw_input, so you can use it in conjunction with readline.