News for hackers. Stuff that matters.
Re:Understanding a Python Closure Oddity by zbentley on Tuesday June 18, 2024 @02:05PM (#40720501)
Functions.partial can also supply captures in that way, and is slightly more obvious (and less likely to generate linter complaints if the kwarg is mutable).
Re:Understanding a Python Closure Oddity by zbentley on Wednesday June 19, 2024 @10:06AM (#40728438)
er, functools.partial, too late to edit.