
Jan. 31, 2013
11:23 p.m.
On 01/02/13 03:35, Jason Keene wrote:
Why do function definitions require parens?
class MyClass: ... pass ... def my_func: File "<stdin>", line 1 def my_func: ^ SyntaxError: invalid syntax
This seems to me to break a symmetry with class definitions.
Why do you think that class definitions and function definitions should be symmetrical? -- Steven