Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
It would be breaking change. In addition to multiline strings you can use \n with $' on Posix: python -c $'with open("somefile.txt") as f:\n s = f.read()\n print(len(s))' Maybe there is similar feature on Windows, but in any case the command line interface on Windows is far from user friendly. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40568> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com