Re: [Python-3000] 100% backwards compatible parenless function call statements

2007-08-13 Thread Guido van Rossum
This is a topic for python-ideas, not python-3000. To be absolutely brutally honest, it doesn't look like you understand parsing well enough to be able to write a PEP. E.g. why is cos(3)+4 not interpreted as cos((3)+4) in your proposal? Python's predecessor had something like this, and th

Re: [Python-3000] 100% backwards compatible parenless function call statements

2007-08-13 Thread Blake Winton
Chris Monsanto wrote: > so those uncomfortable with > this (basic) idea can continue to use parens in their function calls. But we would have to read people's code who didn't use them. > my_func2 # call other function > my_func2() # call it again So, those two are the same, but these two are d

[Python-3000] 100% backwards compatible parenless function call statements

2007-08-13 Thread Chris Monsanto
Since Python makes such a distinction between statements and expressions, I am proposing that function calls as statements should be allowed to omit parentheses. What I am proposing is 100% compatible with Python 2.x's behavior of function calls; so those uncomfortable with this (basic) idea can co