New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:
In Python3.8 and prior, you can type this in a shell session ------------------------------------------------------------ Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license()" for more information. >>> def square(x): s = x ** 2 return s In Python3.9, the input is terminated prematurely ------------------------------------------------- Python 3.9.0a6 (v3.9.0a6:bc1c8af8ef, Apr 27 2020, 17:05:28) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license()" for more information. >>> def square(x): s = x ** 2 # <-- On first return, the statement evaluates >>> >>> square(5) 25 ---------- assignee: terry.reedy components: IDLE messages: 367875 nosy: rhettinger, terry.reedy priority: high severity: normal status: open title: IDLE Shell not allowing more than two line inputs versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40472> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com