Why does not Python accept functions with no names?

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Mon Feb 21 23:05:27 EST 2022


> BTW, this is not what is usually meant by the term "anonymous
function". An anonymous function is one that is not bound
to *any* name. The thing you're proposing wouldn't be
anonymous -- it would have a name, that name being the empty
string.


Thanks for clarifying this point 👍👍👍


More information about the Python-list mailing list