On 17 Jun 2014 03:42, "Chris Barker" <chris.bar...@noaa.gov> wrote: > > On Sat, Jun 14, 2014 at 1:11 PM, Paul Sokolovsky <pmis...@gmail.com> wrote: > >> >> > > 1. It hampers interactive mode - instead of short and easy to type >> > > execfile("file.py") one needs to use exec(open("file.py").read()). >> >> > >> > If the amount of typing is the problem, that's easy to solve: >> > >> > # do this once >> > def execfile(name): >> > exec(open("file.py").read()) > > > FWIW, when I started using python (15?) years ago -- the first thing I looked for was a way to "just run a file", at the interactive prompt, like I had in MATLAB. I found and used execfile().
Yes, if people are looking for a MATLAB replacement, they want IPython rather than the default REPL. The default one is deliberately minimal, IPython is designed to be a comprehensive numeric and scientific workspace. Cheers, Nick.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com