# Why not real anonymous functions?

**URL:** <https://discuss.python.org/t/why-not-real-anonymous-functions/44513>\
**Category:** Ideas\
**Created:** [January 30, 2024, 2:27am UTC](https://discuss.python.org/t/why-not-real-anonymous-functions/44513 "2024-01-30T02:27:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![drdavella](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/drdavella/32/11792_2.png) [@drdavella](https://discuss.python.org/u/drdavella)\
**Post date:** [January 30, 2024, 2:42am UTC](https://discuss.python.org/t/why-not-real-anonymous-functions/44513/4 "2024-01-30T02:42:04Z")

</div>

> [@Rosuav](#):
>
> Python has a `lambda` keyword that does this job.
> 
> ```python
> 
> ```

The functionality of `lambda` is severely restricted.

> [@davidism](#):
>
> If you’re asking “why not multiline lambda syntax” then there are years if not _decades_ of previous iterations of this exact question that you can find on the mailing list and then these forums more recently. You’ll note that despite this long history, there are still no multiline lambdas, so that’s probably unlikely to change this time either.

That’s useful context but it’s also sort of a non-answer. An opinion that may have been justified in 2006 may no longer be so in 2024, especially in light of developments in other languages. Python itself has adopted many functional constructs in the meantime. (Try to imagine using `match` in Python back in 2006!) So it seems worth revisiting at the least.

---

_[View the full topic](https://discuss.python.org/t/why-not-real-anonymous-functions/44513)._
