Timeline for Why doesn't Python allow multi-line lambdas?
Current License: CC BY-SA 3.0
19 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 9, 2023 at 1:33 | comment | added | Andrew | I found a nice workaround by simplying re-using def with the same name repeatedly: stackoverflow.com/a/77629850/1599699 Very powerful, flexible, and simple. Next best thing for this purpose. | |
| Feb 18, 2023 at 13:38 | comment | added | Jürgen A. Erhard | "require adding more exceptions" Nope, it would just require you, the user, not to misuse those "indentation rules" as law (they aren't rules, at least not from Python… your project's/company's coding style 'guidelines' is of course a whole different kind of beast). | |
| Jan 30, 2017 at 11:07 | history | tweeted | twitter.com/StackSoftEng/status/826023967316131841 | ||
| Dec 23, 2016 at 20:09 | history | unprotected | Robert Harvey | ||
| Dec 23, 2016 at 20:01 | history | protected | gnat | ||
| Dec 23, 2016 at 19:52 | answer | added | Danilo | timeline score: 1 | |
| Aug 6, 2014 at 20:38 | answer | added | Warbo | timeline score: 5 | |
| Nov 16, 2013 at 1:57 | answer | added | pyrospade | timeline score: 13 | |
| Mar 7, 2013 at 23:27 | comment | added | Mauricio Scheffer | stackoverflow.com/questions/1233448/… | |
| Aug 8, 2011 at 1:28 | comment | added | detly | Apart from saving seven characters, how is this any better than a def? It now has exactly the same visual structure. | |
| Aug 7, 2011 at 18:13 | comment | added | Jason Baker | Considering that you note the concrete reasons why Guido doesn't allow multi-expression lambdas and then dismiss them, I'm going to assume you're seeking validation rather than a real answer. | |
| Aug 7, 2011 at 18:12 | history | edited | Adam Lear♦ | CC BY-SA 3.0 | Minor edits for grammar and flow. |
| Aug 7, 2011 at 18:11 | vote | accept | treecoder | ||
| Aug 7, 2011 at 18:03 | answer | added | Vito De Tullio | timeline score: 30 | |
| Aug 7, 2011 at 17:55 | history | edited | treecoder | CC BY-SA 3.0 | added 11 characters in body |
| Aug 7, 2011 at 17:46 | history | edited | Mason Wheeler | CC BY-SA 3.0 | fixed spelling |
| Aug 7, 2011 at 17:44 | history | edited | treecoder | CC BY-SA 3.0 | added 370 characters in body |
| Aug 7, 2011 at 17:39 | answer | added | BlackJack | timeline score: 52 | |
| Aug 7, 2011 at 17:30 | history | asked | treecoder | CC BY-SA 3.0 |