> Can anyone tear this idea apart? `exec` and `eval` come to mind... I'm sure there are also nasty `inspect` hacks this could break, too?
def foo(a, b): x = a + b if not x: return None sleep(1) # A calculation that does not use x return eval("x") _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/GXWFXRV7GQRISIS727RQCS6WRTEBDHN4/ Code of Conduct: http://python.org/psf/codeofconduct/