Table of Contents

Class: _PickleHandle Bio/Tools/MultiProc/copen.py

This is a decorator around a _CommandHandle. Instead of returning the results as a string, it returns a python object. The child process must pickle its output to the pipe!

Members: pid what is the PID of the subprocess? killsig what signal killed the child process? status what was the status of the command? error if an error occurred, this describes it.

Methods: close Close this process, killing it if necessary. fileno Return the fileno used to read from the process. wait Wait for the process to finish. poll Is the process finished? elapsed How much time has this process taken? read Return a Python object.

Methods   
__getattr__
__init__
read
  __getattr__ 
__getattr__ ( self,  attr )

Exceptions   
AttributeError, attr
  __init__ 
__init__ (
        self,
        pid,
        cread,
        errread=None,
        )

_PickleHandle(pid, cread[, errread])

Create a wrapper around a command. pid should be the process ID of the command that was created, probably by a fork/exec. cread should be a file object used to read from the child. If errread is given, then I will look there for messages pertaining to error conditions.

  read 
read ( self )

  1. read() -> python object

    Returns None on error. Most likely, the function returned an object that could not be pickled.


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:05 2002 by HappyDoc version 2.0.1