Module Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Str While BoolOpAnd UnaryOpNot NameLoad CompareLt NameLoad Call NameLoad NameLoad body If CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num orelse If CompareEq NameLoad Str body If CompareNotEq SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Str body Raise NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num Call NameLoad NameLoad If NameLoad body Raise NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num Call NameLoad NameLoad Assign NameStore Num AugAssignAdd NameStore Num orelse If CompareEq NameLoad Str body If CompareNotEq SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Str body Raise NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num Call NameLoad NameLoad If NameLoad body Raise NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num Call NameLoad NameLoad Assign NameStore Num AugAssignAdd NameStore Num orelse If Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num BinOpAdd NameLoad Num Assign NameStore Call NameLoad Call NameLoad NameLoad Num AugAssignAdd NameStore Num orelse If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num BinOpAdd NameLoad Num Assign NameStore Call NameLoad Call NameLoad NameLoad Num AugAssignAdd NameStore Num orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad Num body Raise NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num NameLoad attr If CompareNotIn NameLoad NameLoad body Raise NameLoad BinOpMod Str TupleLoad NameLoad BinOpAdd NameLoad Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd NameLoad Num orelse Raise NameLoad BinOpMod Str TupleLoad Repr NameLoad BinOpAdd NameLoad Num Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If NameLoad body If CompareGt Call NameLoad NameLoad Num body Raise NameLoad Str Assign NameStore Call NameLoad BinOpBitAnd Call NameLoad NameLoad Num If NameLoad body Assign NameStore ListLoad Str NameLoad orelse Assign NameStore ListLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore ListLoad While CompareLt NameLoad Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Dict Index SubscriptLoad NameLoad Slice Num NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Raise NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
functions for parsing keyspecs

Support for turning keyspecs into appropriate sequences.

pyrepl uses it's own bastardized keyspec format, which is meant to be
a strict superset of readline's "KEYSEQ" format (which is to say
that if you can come up with a spec readline accepts that this
doesn't, you've found a bug and should tell me about it).

Note that this is the `\C-o' style of readline keyspec, not the
`Control-o' sort.

A keyspec is a string representing a sequence of keypresses that can
be bound to a command.

All characters other than the backslash represent themselves.  In the
traditional manner, a backslash introduces a escape sequence.

The extension to readline is that the sequence \<KEY> denotes the
sequence of charaters produced by hitting KEY.

Examples:

`a'     - what you get when you hit the `a' key
`\EOA'  - Escape - O - A (up, on my terminal)
`\<UP>' - the up arrow key
`\<up>' - ditto (keynames are case insensitive)
`\C-o', `\c-o'  - control-o
`\M-.'  - meta-period
`\E.'   - ditto (that's how meta works for pyrepl)
`\<tab>', `\<TAB>', `\t', `\011', '\x09', '\X09', '\C-i', '\C-I'
   - all of these are the tab character.  Can you think of any more?
 N/A _escapes N/A \ ' " a b e f n r t v \ ' " \h N/A _keynames N/A backspace delete down end enter escape f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 home insert left page down page up return right space tab up backspace delete down end f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 home insert left page down page up right up KeySpecError N/A Exception N/A N/A N/A _parse_key1 N/A N/A key s N/A N/A N/A ctrl 0 N/A meta 0 N/A ret N/A N/A N/A ret N/A s N/A len key N/A N/A N/A N/A key N/A s \ N/A N/A c N/A N/A N/A key N/A N/A s 1 lower N/A N/A N/A _escapes has_key c N/A N/A ret N/A _escapes N/A c N/A s 2 N/A N/A N/A c c N/A N/A N/A N/A key N/A N/A s 2 - N/A N/A KeySpecError N/A \C must be followed by `-' (char %d of %s) N/A N/A s 2 N/A repr key N/A ctrl N/A N/A KeySpecError N/A doubled \C- (char %d of %s) N/A N/A s 1 N/A repr key N/A ctrl 1 N/A s 3 N/A N/A N/A c m N/A N/A N/A N/A key N/A N/A s 2 - N/A N/A KeySpecError N/A \M must be followed by `-' (char %d of %s) N/A N/A s 2 N/A repr key N/A meta N/A N/A KeySpecError N/A doubled \M- (char %d of %s) N/A N/A s 1 N/A repr key N/A meta 1 N/A s 3 N/A N/A N/A N/A c isdigit N/A N/A n N/A key N/A N/A s 1 N/A s 4 N/A ret N/A chr N/A int n 8 N/A s 4 N/A N/A N/A c x N/A N/A n N/A key N/A N/A s 2 N/A s 4 N/A ret N/A chr N/A int n 16 N/A s 4 N/A N/A N/A c < N/A N/A t N/A N/A key find > s N/A N/A t -1 N/A N/A KeySpecError N/A unterminated \< starting at char %d of %s N/A N/A s 1 N/A repr key N/A ret N/A N/A N/A key N/A N/A s 2 t lower N/A N/A ret _keynames N/A N/A KeySpecError N/A unrecognised keyname `%s' at char %d of %s N/A ret N/A s 2 N/A repr key N/A ret N/A _keynames N/A ret N/A s N/A t 1 N/A N/A KeySpecError N/A unknown backslash escape %s at char %d of %s N/A N/A c N/A s 2 N/A repr key N/A N/A ret N/A key N/A s N/A s 1 N/A ctrl N/A N/A N/A N/A len ret 1 N/A N/A KeySpecError \C- must be followed by a character N/A ret N/A chr N/A N/A ord ret 31 N/A meta N/A N/A ret N/A ret N/A N/A ret N/A ret N/A N/A ret s N/A parse_keys N/A N/A key N/A N/A N/A s 0 N/A r N/A N/A N/A s N/A len key N/A N/A N/A k s N/A _parse_key1 key s N/A N/A N/A r extend k N/A r N/A compile_keymap N/A N/A keymap empty N/A N/A N/A r N/A N/A N/A key value N/A N/A keymap items N/A N/A N/A N/A N/A r setdefault N/A key N/A 0 N/A N/A N/A key N/A 1 value N/A N/A key value N/A N/A r items N/A N/A N/A empty value N/A N/A N/A N/A len value 1 N/A N/A KeySpecError N/A key definitions for %s clash N/A N/A N/A value values N/A N/A N/A r N/A key N/A value N/A empty N/A N/A N/A r N/A key N/A compile_keymap value empty N/A r N/A