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 this:
def my_function:
pass
***
Is that a possible scenario at this point, or even desirable?
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/NPDP6VOLOMPPI6J3AUOAFBGFWPB3RY54/
Code of Conduct: http://python.org/psf/codeofconduct/