parameters: (self)
return_statement: return self._popen.returncode is None
docstring: Return whether process is alive
docstring_summary: Return whether process is alive
docstring_tokens: Return whether process is alive
function: def is_alive(self):
          '''
          Return whether process is alive
          '''
          if self is _current_process:
              return True
          assert self._parent_pid == os.getpid(), 'can only test a child process'
          if self._popen is None:
              return False
          self._popen.poll()
          return self._popen.returncode is None
function_tokens: def is_alive ( self ) : if self is _current_process : return True assert self . _parent_pid == os . getpid ( ) , 'can only test a child process' if self . _popen is None : return False self . _popen . poll ( ) return self . _popen . returncode is None