[issue40850] Programming FAQ - variables local to the lambdas
SilentGhost
report at bugs.python.org
Wed Jun 3 01:24:02 EDT 2020
SilentGhost <ghost.adh at runbox.com> added the comment:
I don't think your suggestion improve readability there. I think explanation following the code example does a decent job without being overly verbose.
Regarding, memoization, it is mentioned in [0], right after describing the technique. So, I'm not sure why you had to specifically look it up or why you still suspect that memorisation would be correct
[0]: https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects
----------
nosy: +SilentGhost
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40850>
_______________________________________
More information about the Python-bugs-list
mailing list