#NEWLINE# def _walkPyObject( self , pyObject , objectId ) : #NEWLINE# #INDENT# if isinstance ( pyObject , RemotePythonObject . RemotePythonObject ) : #NEWLINE# #INDENT# self . _registerRemotePythonObject ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , Future . Future ) : #NEWLINE# #INDENT# self . _walkPyObject ( pyObject . result ( ) , objectId ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , _FileDescription ) : #NEWLINE# #INDENT# self . _registerFileDescription ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( pyObject , Exception ) and ( pyObject . __class__ in NamedSingletons . pythonSingletonToName ) ) : #NEWLINE# #INDENT# self . _registerBuiltinExceptionInstance ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( pyObject , ( type , type ( isinstance ) ) ) and ( pyObject in NamedSingletons . pythonSingletonToName ) ) : #NEWLINE# #INDENT# self . _registerNamedSingleton ( objectId , NamedSingletons . pythonSingletonToName [ pyObject ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , PyforaWithBlock . PyforaWithBlock ) : #NEWLINE# #INDENT# self . _registerWithBlock ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , _Unconvertible ) : #NEWLINE# #INDENT# self . _registerUnconvertible ( objectId ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , tuple ) : #NEWLINE# #INDENT# self . _registerTuple ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , list ) : #NEWLINE# #INDENT# self . _registerList ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , dict ) : #NEWLINE# #INDENT# self . _registerDict ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isPrimitive ( pyObject ) : #NEWLINE# #INDENT# self . _registerPrimitive ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if PyforaInspect . isfunction ( pyObject ) : #NEWLINE# #INDENT# self . _registerFunction ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if PyforaInspect . isclass ( pyObject ) : #NEWLINE# #INDENT# self . _registerClass ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( pyObject , instancemethod ) : #NEWLINE# #INDENT# self . _registerInstanceMethod ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isClassInstance ( pyObject ) : #NEWLINE# #INDENT# self . _registerClassInstance ( objectId , pyObject ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False , ( "don't know what to do with %s" % pyObject )