
No, the proposal was to keep print a function, but to allow alternative syntax without brackets (that would still call it as a function). Best wishes Rob Cliffe On 20/10/2020 05:38, Paul Bryan wrote:
printis now a function, and as such can be passed to something that expects a callable. We would lose this if it were restored to a statement. Consequently this would be a breaking change, so I don't see it happening.
On Tue, 2020-10-20 at 01:21 +0200, J. Pic wrote:
+1 because print is a debugging tool mostly used in short lived temporary code as such the parenthesis do not matter and do not provide any value.
A lot of debugger use print to instrumentalize their code during development or debugging, as in: "I want to dump some variable and run my test again" or something like that. This means that they are writing a line of code that has a lifetime of a few minutes if not seconds. I believe that the parenthesis don't matter in the vast majority of cases where a developer writes a print statement: because they would delete afterwards ie. with git checkout -p or something.
As such, PEP8 would have to decide that parenthesis are the way to go, even though bare print statements are nicer for debugging than parenthesis based debug statements. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org <mailto:python-ideas@python.org> To unsubscribe send an email to python-ideas-leave@python.org <mailto:python-ideas-leave@python.org> https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/PGWCRA... Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ZEC2F5... Code of Conduct: http://python.org/psf/codeofconduct/