this post was submitted on 07 Jul 2023
14 points (100.0% liked)

Python

6331 readers
122 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

An exploration of partial() and partialmethod() in functools

you are viewing a single comment's thread
view the rest of the comments
[–] zeusbottom@sh.itjust.works 2 points 1 year ago

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.