blob: ec59d2b647b65337effd9ce29a604dbb9e23c64d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import os
import pdb
import pprint
import rlcompleter, readline
import sys
# enable tab completion
readline.parse_and_bind("tab: complete")
# also get tab completion in pdb
pdb.Pdb.complete = rlcompleter.Completer(locals()).complete
# prettyprint with p()
pp = pprint.PrettyPrinter(indent=4, width=80)
p = pp.pprint
|