Peter Otten <__peter__ at web.de> writes: <snip> > If you make the compilation step explicit you can pass a filename: > >>>> exec compile("def f(x): return f(x-1) if x else 1/0", "yadda.py", > "exec") The works great. Problem solved. Thanks. -- Burton Samograd