Message395436
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? |
|
Date |
User |
Action |
Args |
2021-06-09 16:54:16 | PedanticHacker | set | recipients:
+ PedanticHacker |
2021-06-09 16:54:16 | PedanticHacker | set | messageid: <1623257656.83.0.503591632705.issue44366@roundup.psfhosted.org> |
2021-06-09 16:54:16 | PedanticHacker | link | issue44366 messages |
2021-06-09 16:54:16 | PedanticHacker | create | |
|