GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
pycons.ishell.Shell Class Reference

Public Member Functions

def __init__
 
def namespace
 
def eval
 
def complete
 
def shell
 

Data Fields

 term
 
 IP
 
 ip
 
 iter_more
 
 complete_sep
 
 prompt
 

Detailed Description

 

Definition at line 28 of file ishell.py.

Constructor & Destructor Documentation

def pycons.ishell.Shell.__init__ (   self,
  argv = None,
  user_ns = None,
  user_global_ns = None,
  cin = None,
  cout = None,
  cerr = None,
  input_func = None 
)
 

Definition at line 32 of file ishell.py.

32 
33  cin=None, cout=None,cerr=None, input_func=None):
34  """ """
35  if input_func:
36  IPython.iplib.raw_input_original = input_func
37  if cin:
38  IPython.Shell.Term.cin = cin
39  if cout:
40  IPython.Shell.Term.cout = cout
41  if cerr:
42  IPython.Shell.Term.cerr = cerr
43  if argv is None:
44  argv=[]
45  IPython.iplib.raw_input = lambda x: None
46  self.term = IPython.genutils.IOTerm(cin=cin, cout=cout, cerr=cerr)
47  os.environ['TERM'] = 'dumb'
48  excepthook = sys.excepthook
49  self.IP = IPython.Shell.make_IPython(argv,
50  user_ns=user_ns,
51  user_global_ns=user_global_ns,
52  embedded=True,
53  shell_class=IPython.Shell.InteractiveShell)
54  self.IP.system = lambda cmd: self.shell(self.IP.var_expand(cmd),
55  header='IPython system call: ',
56  verbose=self.IP.rc.system_verbose)
57  # Get a hold of the public IPython API object and use it
58  self.ip = ipapi.get()
59  self.ip.magic('colors LightBG')
60  sys.excepthook = excepthook
61  self.iter_more = 0
62  self.complete_sep = re.compile('[\s\{\}\[\]\(\)]')
63 

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