Module Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Import alias Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body While CompareGtE NameLoad Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr SubscriptLoad NameLoad Index NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad GeneratorExp BinOpMod Str NameLoad comprehension NameStore NameLoad Assign NameStore Num While NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Num TupleLoad Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr If UnaryOpNot NameLoad body Break If CompareEq NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore BinOpSub NameLoad NameLoad orelse Break Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Call NameLoad Num
N/A N/A sys N/A N/A N/A N/A sys path insert 0 .. N/A termenu N/A 
This example shows how you could implement a menu for a very long (or endless)
list of options.
 IteratorList N/A object N/A __init__ N/A N/A self iter N/A N/A N/A N/A self _iter iter N/A N/A self _list N/A N/A __getitem__ N/A N/A self index N/A N/A N/A N/A N/A N/A index N/A len N/A self _list N/A N/A N/A N/A N/A self _list append N/A N/A N/A self _iter next N/A N/A N/A StopIteration N/A N/A N/A N/A N/A self _list N/A index N/A __slice__ N/A N/A self i j N/A N/A N/A N/A self N/A j N/A N/A N/A self _list N/A i j N/A N/A show_long_menu N/A N/A optionsIter pagesize N/A 30 N/A N/A Next N/A object N/A Previous N/A object N/A options N/A IteratorList N/A N/A %05d n N/A n optionsIter N/A start 0 N/A True N/A N/A page N/A options N/A start N/A start pagesize N/A N/A N/A len page pagesize N/A N/A N/A N/A page append N/A >> Next N/A N/A start 0 N/A N/A N/A N/A page insert 0 N/A << Previous N/A result N/A N/A N/A N/A termenu Termenu page multiselect False show N/A N/A result N/A N/A N/A N/A result Next N/A N/A start N/A start pagesize N/A N/A N/A result Previous N/A N/A start N/A start pagesize N/A N/A N/A result N/A N/A N/A __name__ __main__ N/A N/A N/A show_long_menu N/A xrange 500