Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
idlelib.run.Executive Class Reference
Inheritance diagram for idlelib.run.Executive:
Inheritance graph
[legend]
Collaboration diagram for idlelib.run.Executive:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def runcode
def interrupt_the_server
def start_the_debugger
def stop_the_debugger
def get_the_calltip
def get_the_completion_list
def stackviewer

Public Attributes

 rpchandler
 locals
 calltip
 autocomplete
 usr_exc_info
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 283 of file run.py.


Constructor & Destructor Documentation

def idlelib.run.Executive.__init__ (   self,
  rpchandler 
)

Definition at line 285 of file run.py.

00285 
00286     def __init__(self, rpchandler):
00287         self.rpchandler = rpchandler
00288         self.locals = __main__.__dict__
00289         self.calltip = CallTips.CallTips()
00290         self.autocomplete = AutoComplete.AutoComplete()

Here is the caller graph for this function:


Member Function Documentation

def idlelib.run.Executive.get_the_calltip (   self,
  name 
)

Definition at line 323 of file run.py.

00323 
00324     def get_the_calltip(self, name):
00325         return self.calltip.fetch_tip(name)

def idlelib.run.Executive.get_the_completion_list (   self,
  what,
  mode 
)

Definition at line 326 of file run.py.

00326 
00327     def get_the_completion_list(self, what, mode):
00328         return self.autocomplete.fetch_completions(what, mode)

Definition at line 312 of file run.py.

00312 
00313     def interrupt_the_server(self):
00314         if interruptable:
00315             thread.interrupt_main()

def idlelib.run.Executive.runcode (   self,
  code 
)

Definition at line 291 of file run.py.

00291 
00292     def runcode(self, code):
00293         global interruptable
00294         try:
00295             self.usr_exc_info = None
00296             interruptable = True
00297             try:
00298                 exec(code, self.locals)
00299             finally:
00300                 interruptable = False
00301         except:
00302             self.usr_exc_info = sys.exc_info()
00303             if quitting:
00304                 exit()
00305             # even print a user code SystemExit exception, continue
00306             print_exception()
00307             jit = self.rpchandler.console.getvar("<<toggle-jit-stack-viewer>>")
00308             if jit:
00309                 self.rpchandler.interp.open_remote_stack_viewer()
00310         else:
00311             flush_stdout()

def idlelib.run.Executive.stackviewer (   self,
  flist_oid = None 
)

Definition at line 329 of file run.py.

00329 
00330     def stackviewer(self, flist_oid=None):
00331         if self.usr_exc_info:
00332             typ, val, tb = self.usr_exc_info
00333         else:
00334             return None
00335         flist = None
00336         if flist_oid is not None:
00337             flist = self.rpchandler.get_remote_proxy(flist_oid)
00338         while tb and tb.tb_frame.f_globals["__name__"] in ["rpc", "run"]:
00339             tb = tb.tb_next
00340         sys.last_type = typ
00341         sys.last_value = val
00342         item = StackViewer.StackTreeItem(flist, tb)
00343         return RemoteObjectBrowser.remote_object_tree_item(item)
def idlelib.run.Executive.start_the_debugger (   self,
  gui_adap_oid 
)

Definition at line 316 of file run.py.

00316 
00317     def start_the_debugger(self, gui_adap_oid):
00318         return RemoteDebugger.start_debugger(self.rpchandler, gui_adap_oid)

def idlelib.run.Executive.stop_the_debugger (   self,
  idb_adap_oid 
)

Definition at line 319 of file run.py.

00319 
00320     def stop_the_debugger(self, idb_adap_oid):
00321         "Unregister the Idb Adapter.  Link objects and Idb then subject to GC"
00322         self.rpchandler.unregister(idb_adap_oid)


Member Data Documentation

Definition at line 289 of file run.py.

Definition at line 288 of file run.py.

Definition at line 287 of file run.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 286 of file run.py.

Definition at line 294 of file run.py.


The documentation for this class was generated from the following file: