[issue44366] Define functions without parentheses (if no parameters given)

2021-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as this would obviously need a PEP, please open a discusion first on python-ideas -- nosy: +pablogsal resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue44366] Define functions without parentheses (if no parameters given)

2021-06-09 Thread Irit Katriel
Irit Katriel added the comment: The python-ideas mailing list is a better place for such questions than the bug tracker. -- nosy: +iritkatriel ___ Python tracker ___

[issue44366] Define functions without parentheses (if no parameters given)

2021-06-09 Thread Boštjan Mejak
New submission from Boštjan Mejak : The syntax to define a class looks like this: class MyClass: pass Nice and neat. *** And the syntax to define a function looks like this: def my_function(): pass Hmmm... *** What if we could define functions (that don't have any parameters) like t