libtbx.easy_run
index
/net/chevy/raid1/nat/src/cctbx_project/libtbx/easy_run.py

 
Modules
       
os
subprocess
sys

 
Classes
       
__builtin__.object
fully_buffered_base
fully_buffered_simple
fully_buffered_subprocess
fully_buffered_subprocess

 
fully_buffered = class fully_buffered_subprocess(fully_buffered_base)
    This implementation is supposed to never block.
 
 
Method resolution order:
fully_buffered_subprocess
fully_buffered_base
__builtin__.object

Methods defined here:
__init__(self, command, stdin_lines=None, join_stdout_stderr=False, stdout_splitlines=True, bufsize=-1)

Methods inherited from fully_buffered_base:
format_errors_if_any(self)
raise_if_errors(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_errors_or_output(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_output(self, show_output_threshold=10, Error=<type 'exceptions.RuntimeError'>)
show_stderr(self, out=None, prefix='')
show_stdout(self, out=None, prefix='')

Data descriptors inherited from fully_buffered_base:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class fully_buffered_base(__builtin__.object)
     Methods defined here:
format_errors_if_any(self)
raise_if_errors(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_errors_or_output(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_output(self, show_output_threshold=10, Error=<type 'exceptions.RuntimeError'>)
show_stderr(self, out=None, prefix='')
show_stdout(self, out=None, prefix='')

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class fully_buffered_simple(fully_buffered_base)
    Executes command, sends stdin_lines (str or sequence), then reads
stdout_lines first, stderr_lines second (if join_stdout_stderr
is False).
 
The constructor may deadlock if the I/O buffers are too small to allow
the blocking write and reads in the given sequence. Specifically,
stdin_lines may be too big, or there may be too many stderr_lines,
but there can be any number of stdout_lines. The tests below are
known to work under Mac OS X, Windows XP, IRIX, and Tru64 Unix with
stdin_lines up to 1000000, stderr_lines up to 500. I.e. this simple
implementation should cover most practical situations.
 
 
Method resolution order:
fully_buffered_simple
fully_buffered_base
__builtin__.object

Methods defined here:
__init__(self, command, stdin_lines=None, join_stdout_stderr=False, stdout_splitlines=True, bufsize=-1)

Methods inherited from fully_buffered_base:
format_errors_if_any(self)
raise_if_errors(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_errors_or_output(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_output(self, show_output_threshold=10, Error=<type 'exceptions.RuntimeError'>)
show_stderr(self, out=None, prefix='')
show_stdout(self, out=None, prefix='')

Data descriptors inherited from fully_buffered_base:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class fully_buffered_subprocess(fully_buffered_base)
    This implementation is supposed to never block.
 
 
Method resolution order:
fully_buffered_subprocess
fully_buffered_base
__builtin__.object

Methods defined here:
__init__(self, command, stdin_lines=None, join_stdout_stderr=False, stdout_splitlines=True, bufsize=-1)

Methods inherited from fully_buffered_base:
format_errors_if_any(self)
raise_if_errors(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_errors_or_output(self, Error=<type 'exceptions.RuntimeError'>)
raise_if_output(self, show_output_threshold=10, Error=<type 'exceptions.RuntimeError'>)
show_stderr(self, out=None, prefix='')
show_stdout(self, out=None, prefix='')

Data descriptors inherited from fully_buffered_base:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
call(command)
exercise(args=None)
go(command, stdin_lines=None)

 
Data
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)