<p dir="ltr">> you say "do this once", but actually it's "do it in each interactive<br>
> session again and again", ...</p>
<p dir="ltr">That's what your Python startup file is for. I have been running with several tweaked builtin functions for years. Never have to consciously load them. If I wanted execfile badly enough, I'd define it there.</p>
<p dir="ltr">I don't think I've used execfile more than a handful of times in the 20-odd years I've been using Python. Perhaps our personal approaches to executing code at the interpreter prompt are radically different, but I think if the lack of execfile is such a big deal for you, you might want to check around to see how other people use interactive mode.</p>
<p dir="ltr">Skip</p>