This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author PedanticHacker
Recipients PedanticHacker
Date 2021-06-09.16:54:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623257656.83.0.503591632705.issue44366@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-06-09 16:54:16PedanticHackersetrecipients: + PedanticHacker
2021-06-09 16:54:16PedanticHackersetmessageid: <1623257656.83.0.503591632705.issue44366@roundup.psfhosted.org>
2021-06-09 16:54:16PedanticHackerlinkissue44366 messages
2021-06-09 16:54:16PedanticHackercreate