def builtin_lookup(name):
 builtin_astroid = MANAGER.ast_from_module(builtins)
 if (name == '__dict__'):
  return (builtin_astroid, ())
 try:
  stmts = builtin_astroid.locals[name]
 except KeyError:
  stmts = ()
 return (builtin_astroid, stmts)

def builtin_lookup ( name ) : builtin_astroid = MANAGER . ast_from_module ( builtins ) if ( name == '__dict__' ) : return ( builtin_astroid , ( ) ) try : stmts = builtin_astroid . locals [ name ] except KeyError : stmts = ( ) return ( builtin_astroid , stmts )
lookup a name into the builtin module return the list of matching statements and the astroid for the builtin module .