parameters: (self, anObject)
return_statement: return False
docstring: @type  anObject: L{Process}, L{Thread}, int
          @param anObject:
               - C{int}: Global ID of the process to look for.
               - C{int}: Global ID of the thread to look for.
               - C{Process}: Process object to look for.
               - C{Thread}: Thread object to look for.
  
          @rtype:  bool
          @return: C{True} if the snapshot contains
              a L{Process} or L{Thread} object with the same ID.
docstring_summary: @type  anObject: L{Process}, L{Thread}, int
          @param anObject:
               - C{int}: Global ID of the process to look for.
               - C{int}: Global ID of the thread to look for.
               - C{Process}: Process object to look for.
               - C{Thread}: Thread object to look for.
docstring_tokens: @type anObject : L { Process } L { Thread } int @param anObject : - C { int } : Global ID of the process to look for . - C { int } : Global ID of the thread to look for . - C { Process } : Process object to look for . - C { Thread } : Thread object to look for .
function: def __contains__(self, anObject):
          """
          @type  anObject: L{Process}, L{Thread}, int
          @param anObject:
               - C{int}: Global ID of the process to look for.
               - C{int}: Global ID of the thread to look for.
               - C{Process}: Process object to look for.
               - C{Thread}: Thread object to look for.
  
          @rtype:  bool
          @return: C{True} if the snapshot contains
              a L{Process} or L{Thread} object with the same ID.
          """
          if isinstance(anObject, Process):
              anObject = anObject.dwProcessId
          if self.has_process(anObject):
              return True
          for aProcess in self.iter_processes():
              if anObject in aProcess:
                  return True
          return False
function_tokens: def __contains__ ( self , anObject ) : if isinstance ( anObject , Process ) : anObject = anObject . dwProcessId if self . has_process ( anObject ) : return True for aProcess in self . iter_processes ( ) : if anObject in aProcess : return True return False