parameters: (self)
docstring: Return the parent process as a Process object pre-emptively
          checking whether PID has been reused.
          If no parent is known return None.
docstring_summary: Return the parent process as a Process object pre-emptively
          checking whether PID has been reused.
          If no parent is known return None.
docstring_tokens: Return the parent process as a Process object pre - emptively checking whether PID has been reused . If no parent is known return None .
function: def parent(self):
          """Return the parent process as a Process object pre-emptively
          checking whether PID has been reused.
          If no parent is known return None.
          """
          lowest_pid = _LOWEST_PID if _LOWEST_PID is not None else pids()[0]
          if self.pid == lowest_pid:
              return None
          ppid = self.ppid()
          if ppid is not None:
              ctime = self.create_time()
              try:
                  parent = Process(ppid)
                  if parent.create_time() <= ctime:
                      return parent
                  # ...else ppid has been reused by another process
              except NoSuchProcess:
                  pass
function_tokens: def parent ( self ) : lowest_pid = _LOWEST_PID if _LOWEST_PID is not None else pids ( ) [ 0 ] if self . pid == lowest_pid : return None ppid = self . ppid ( ) if ppid is not None : ctime = self . create_time ( ) try : parent = Process ( ppid ) if parent . create_time ( ) <= ctime : return parent # ...else ppid has been reused by another process except NoSuchProcess : pass