def read(self, pid=None):
        if pid is not None:
            self.pid = int(pid)
        if self.pid is not None:
            try:
                self.stats = self._get_psinfo(pid)
            except __HOLE__: # no such process
                self.pid = None
                self.stats = None
        else:
            self.stats = None
        return self
dataset/ETHPy150Open kdart/pycopia/core/pycopia/OS/SunOS/procfs.py/ProcStat.read