1# mode: run 2# tag: genexpr, locals 3# ticket: 715 4 5def genexpr_not_in_locals(): 6 """ 7 >>> genexpr_not_in_locals() 8 {'t': (0, 1, 4, 9, 16, 25, 36, 49, 64, 81)} 9 """ 10 t = tuple(x*x for x in range(10)) 11 return locals() 12