Timeline for Why store a function inside a python dictionary?
Current License: CC BY-SA 3.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Dec 3, 2016 at 17:16 | history | suggested | Jonathan Pullano | CC BY-SA 3.0 |
Invert keys and values in dictionary to be consistent with example output
|
| Dec 2, 2016 at 16:09 | history | protected | gnat | ||
| Dec 2, 2016 at 15:46 | review | Suggested edits | |||
| S Dec 3, 2016 at 17:16 | |||||
| Dec 2, 2016 at 15:07 | answer | added | Emanuele | timeline score: 0 | |
| May 1, 2015 at 0:46 | history | tweeted | twitter.com/#!/StackProgrammer/status/593939500293857282 | ||
| Apr 29, 2015 at 21:01 | history | edited | durron597 |
Removed [learning] tag
|
|
| Jan 10, 2013 at 22:33 | vote | accept | mdeutschmtl | ||
| Jan 10, 2013 at 22:31 | comment | added | mdeutschmtl | I had a hunch there was something important & self-referential about including the function inside its own dict... see @dietbuddha's answer... but maybe not? | |
| Jan 10, 2013 at 3:23 | answer | added | Lie Ryan | timeline score: 13 | |
| Jan 10, 2013 at 1:34 | answer | added | iteratingself | timeline score: 7 | |
| Jan 9, 2013 at 21:17 | comment | added | KChaloux | I've seen (and done) some stuff like this in other languages. You could sort of look at it as a switch statement, but wrapped up nicely in a passable object with O(1) lookup time. | |
| Jan 9, 2013 at 20:52 | comment | added | Martijn Pieters | Why would this post be off-topic? It's a great algorithm and data structure concept question! | |
| Jan 9, 2013 at 20:49 | review | Close votes | |||
| Jan 9, 2013 at 20:59 | |||||
| Jan 9, 2013 at 20:29 | review | First posts | |||
| Jan 9, 2013 at 20:29 | |||||
| Jan 9, 2013 at 20:25 | answer | added | unholysampler | timeline score: 36 | |
| Jan 9, 2013 at 20:13 | answer | added | Martijn Pieters | timeline score: 120 | |
| Jan 9, 2013 at 20:10 | history | asked | mdeutschmtl | CC BY-SA 3.0 |