On 26 October 2016 at 22:40, Nikolaus Rath <[email protected]> wrote: > It also imposes a significant burden on scripting. I often have elements > like this in shell scripts: > > output=$(python <<EOF > import h5py > with h5py.File('foo', 'r') as fh: > print((fh['bla'] * fh['com']).sum()) > EOF > ) > > If this now starts up IPython, it'll be *significantly* slower.
Good point. We could, of course, detect when stdin is non-interactive, but at that point the code is starting to get unreasonably complex, as well as having way too many special cases. So I agree, that probably kills the proposal. Paul _______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
