def __init__(self, pid):
        """Create a new Process object for the given pid.
        Raises NoSuchProcess if pid does not exist.
        """
        self._pid = pid
        self._gone = False
        # platform-specific modules define an _psplatform.Process
        # implementation class
        self._platform_impl = _psplatform.Process(pid)
        self._last_sys_cpu_times = None
        self._last_proc_cpu_times = None
        # cache creation time for later use in is_running() method
        try:
            self.create_time
        except AccessDenied:
            pass
        except NoSuchProcess:
            raise NoSuchProcess(pid, None, 'no process found with pid %s' % pid)
def __init__ ( self , pid ) : self . _pid = pid self . _gone = False self . _platform_impl = _psplatform . Process ( pid ) self . _last_sys_cpu_times = None self . _last_proc_cpu_times = None try : self . create_time except AccessDenied : pass except NoSuchProcess : raise NoSuchProcess ( pid , None , 'no process found with pid %s' % pid )
Create a new Process object for the given pid.
        Raises NoSuchProcess if pid does not exist.