#NEWLINE# def dlopen( self , name , flags = 0 ) : #NEWLINE# #INDENT# "Load and return a dynamic library identified by 'name'.\n        The standard C library can be loaded by passing None.\n        Note that functions and types declared by 'ffi.cdef()' are not\n        linked to a particular library, just like C headers; in the\n        library we only look for the actual (untyped) symbols.\n        " #NEWLINE# assert ( isinstance ( name , basestring ) or ( name is None ) ) #NEWLINE# with self . _lock : #NEWLINE# #INDENT# ( lib , function_cache ) = _make_ffi_library ( self , name , flags ) #NEWLINE# self . _function_caches . append ( function_cache ) #NEWLINE# self . _libraries . append ( lib ) #NEWLINE# #UNINDENT# return lib