Peter Otten wrote: > def f(): > big_beast = list(range(10**100)) > return big_beast and True or False > x = f() > > it would prevent that a big_beast reference becomes visible outside the > function and allow for immediate release of its memory.
what's wrong in bool(big_beast)? -- By ZeD -- http://mail.python.org/mailman/listinfo/python-list