SilentGhost <ghost....@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 <rep...@bugs.python.org> <https://bugs.python.org/issue40850> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com