2 ms·
Allowing this syntax for all functions and methods seems ridiculous, especially with the problems Guido mentions (like how the first argument can't begin with a
by beervirus 6y ago
Allowing this syntax for all functions and methods seems ridiculous, especially with the problems Guido mentions (like how the first argument can't begin with a paren or bracket, wtf). But a limited version of this feature that's specific only to the print statement seems fine. If the parser already has the complexity to issue a warning like:
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(1, 2, 3)?
Then why not just have it DWIM?