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.
          """
          ppid = self.ppid()
          if ppid is not None:
              try:
                  parent = Process(ppid)
                  if parent.create_time() <= self.create_time():
                      return parent
                  # ...else ppid has been reused by another process
              except NoSuchProcess:
                  pass
function_tokens: def parent ( self ) : ppid = self . ppid ( ) if ppid is not None : try : parent = Process ( ppid ) if parent . create_time ( ) <= self . create_time ( ) : return parent # ...else ppid has been reused by another process except NoSuchProcess : pass