#NEWLINE# def builtin_lookup( self , mod , name ) : #NEWLINE# #INDENT# "\n        Args\n        ----\n        mod:\n            The __builtins__ dictionary or module, as looked up in\n            a module's globals.\n        name: str\n            The object to lookup\n        " #NEWLINE# fromdict = self . pyapi . dict_getitem ( mod , self . _freeze_string ( name ) ) #NEWLINE# self . incref ( name ) #NEWLINE# bbifdict = self . builder . basic_block #NEWLINE# with cgutils . if_unlikely ( self . builder , self . is_null ( fromdict ) ) : #NEWLINE# #INDENT# frommod = self . pyapi . object_getattr ( mod , self . _freeze_string ( name ) ) #NEWLINE# with cgutils . if_unlikely ( self . builder , self . is_null ( frommod ) ) : #NEWLINE# #INDENT# self . pyapi . raise_missing_global_error ( name ) #NEWLINE# self . return_exception_raised ( ) #NEWLINE# #UNINDENT# bbifmod = self . builder . basic_block #NEWLINE# #UNINDENT# builtin = self . builder . phi ( self . pyapi . pyobj ) #NEWLINE# builtin . add_incoming ( fromdict , bbifdict ) #NEWLINE# builtin . add_incoming ( frommod , bbifmod ) #NEWLINE# return builtin