14
Python's functools.partial() Lets You Pre-Fill A Function
(thepythoncodingstack.substack.com)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
My favorite usage of partial() is when I’m print()ing to a file. So helpful to keep the code readable and easy to change.