(global_name, value, block, func_ir, loc=unknown_loc, prefix=None, name=None)
return stmt
Creates variable and global object. Assign created variable to the global
Creates variable and global object. Assign created variable to the global
Creates variable and global object . Assign created variable to the global
def declare_global(global_name, value, block, func_ir, loc=unknown_loc, prefix=None, name=None):
    """
    Creates variable and global object. Assign created variable to the global
    """

    if prefix is None and name is None:
        prefix = '$_global_' + global_name

    stmt = make_assign(Global(global_name, value, loc), block.scope, func_ir, loc, prefix=prefix, name=name)

    block.prepend(stmt)

    return stmt
def declare_global ( global_name , value , block , func_ir , loc = unknown_loc , prefix = None , name = None ) : if prefix is None and name is None : prefix = '$_global_' + global_name stmt = make_assign ( Global ( global_name , value , loc ) , block . scope , func_ir , loc , prefix = prefix , name = name ) block . prepend ( stmt ) return stmt