> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/GXWFXRV7GQRISIS727RQCS6WRTEBDHN4/
Code of Conduct: http://python.org/psf/codeofconduct/