Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier handlers ExceptHandler type NameLoad body ClassDef bases NameLoad body Pass decorator_list Assign NameStore NameLoad TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body FunctionDef arguments args defaults vararg kwarg body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad ClassDef bases NameLoad body Assign NameStore TupleStore NameStore NameStore Call NameLoad Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareGtE NameLoad Num body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Str BinOpAdd Str AttributeLoad NameLoad attr Str NameLoad keyword Call NameLoad keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Str decorator_list Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad Str ClassDef bases NameLoad NameLoad body Assign NameStore Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A fcntl N/A os N/A pty N/A struct N/A sys N/A termios N/A textwrap bpython.test unittest N/A N/A twisted.internet reactor twisted.internet.defer Deferred twisted.internet.protocol ProcessProtocol twisted.trial.unittest TestCase TrialTestCase N/A N/A N/A ImportError N/A TrialTestCase N/A object N/A N/A N/A N/A reactor None N/A N/A N/A urwid N/A have_urwid True N/A N/A N/A ImportError N/A N/A have_urwid False N/A N/A nose.plugins.attrib attr N/A N/A N/A ImportError N/A attr N/A N/A N/A args kwargs N/A identity N/A N/A func N/A N/A N/A func N/A N/A identity N/A N/A TEST_CONFIG N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ test.config set_win_size N/A N/A fd rows columns N/A N/A N/A s N/A N/A struct pack HHHH rows columns 0 0 N/A N/A N/A fcntl ioctl fd N/A termios TIOCSWINSZ s N/A CrashersTest N/A object N/A N/A backend cli run_bpython N/A N/A self input N/A N/A N/A 
        Run bpython (with `backend` as backend) in a subprocess and
        enter the given input. Uses a test config that disables the
        paste detection.

        Returns bpython's output.
         N/A result N/A Deferred Protocol N/A ProcessProtocol N/A N/A STATES N/A SEND_INPUT COLLECT N/A range 2 __init__ N/A N/A self N/A N/A N/A N/A self data N/A N/A self delayed_call None N/A N/A self states N/A iter N/A self STATES N/A N/A self state N/A next N/A self states N/A outReceived N/A N/A self data N/A N/A N/A N/A self data data N/A N/A N/A self delayed_call None N/A N/A N/A N/A N/A self delayed_call cancel N/A N/A self delayed_call N/A N/A reactor callLater 0.5 N/A self next N/A next N/A N/A self N/A N/A N/A N/A self delayed_call None N/A N/A N/A self state N/A self SEND_INPUT N/A N/A index N/A N/A N/A self data find >>>  N/A N/A index 0 N/A N/A N/A self data N/A N/A self data N/A N/A index 4 N/A N/A N/A N/A self transport write input N/A N/A self state N/A next N/A self states N/A N/A N/A N/A N/A self transport closeStdin N/A N/A N/A N/A self transport pid None N/A N/A N/A self delayed_call None N/A N/A N/A N/A self transport signalProcess TERM N/A processExited N/A N/A self reason N/A N/A N/A N/A N/A self delayed_call None N/A N/A N/A N/A N/A self delayed_call cancel N/A N/A N/A result callback N/A self data N/A N/A N/A N/A master slave N/A N/A pty openpty N/A N/A set_win_size slave 25 80 N/A N/A N/A reactor spawnProcess N/A Protocol N/A sys executable N/A N/A sys executable -m N/A bpython. N/A self backend --config TEST_CONFIG env N/A dict TERM vt100 LANG N/A N/A N/A os environ get LANG usePTY N/A master slave N/A N/A os ttyname slave N/A result N/A test_issue108 N/A N/A self N/A N/A N/A input N/A N/A textwrap dedent             def spam():
            u"y\xe4y"
            
            spam( N/A deferred N/A N/A self run_bpython input N/A N/A N/A deferred addCallback N/A self check_no_traceback N/A N/A attr speed slow test_issue133 N/A N/A self N/A N/A N/A input N/A N/A textwrap dedent             def spam(a, (b, c)):
            pass
            
            spam(1 N/A N/A N/A N/A N/A self run_bpython input addCallback N/A self check_no_traceback N/A N/A attr speed slow check_no_traceback N/A N/A self data N/A N/A N/A N/A N/A self assertNotIn Traceback data N/A N/A CursesCrashersTest N/A TrialTestCase CrashersTest N/A N/A backend cli N/A N/A N/A unittest skipIf N/A reactor None twisted is not available UrwidCrashersTest N/A TrialTestCase CrashersTest N/A N/A backend urwid N/A N/A N/A unittest skipUnless have_urwid urwid is required N/A N/A unittest skipIf N/A reactor None twisted is not available N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main