print is 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 > To unsubscribe send an email to python-ideas-le...@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/PGWCRA2NYGMOKNH4R4LKH2FQS2DFULXF/ > Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@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/ZEC2F5BKUMWRH72J763X4THYCFOQZ4YL/ Code of Conduct: http://python.org/psf/codeofconduct/