learnbyexample to PythonEnglish · 2 years agoPython's functools.partial() Lets You Pre-Fill A Functionthepythoncodingstack.substack.comexternal-linkmessage-square4fedilinkarrow-up114arrow-down10file-text
arrow-up114arrow-down1external-linkPython's functools.partial() Lets You Pre-Fill A Functionthepythoncodingstack.substack.comlearnbyexample to PythonEnglish · 2 years agomessage-square4fedilinkfile-text
minus-squareZeusbottom@sh.itjust.workslinkfedilinkEnglisharrow-up2·2 years agoMy favorite usage of partial() is when I’m print()ing to a file. So helpful to keep the code readable and easy to change.
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.