The Python Papers

The Python Papers

Share this post

The Python Papers
The Python Papers
Python 201 - Using functools to make Partial Functions
Copy link
Facebook
Email
Notes
More

Python 201 - Using functools to make Partial Functions

Mike Driscoll's avatar
Mike Driscoll
Mar 11, 2025
∙ Paid
7

Share this post

The Python Papers
The Python Papers
Python 201 - Using functools to make Partial Functions
Copy link
Facebook
Email
Notes
More
1
Share

Python comes with a fun module called functools. One of its classes is the partial class. You can use it create a new function with partial application of the arguments and keywords that you pass to it. You can use partial to “freeze” a portion of your function’s arguments and/or keywords which results in a new object.

Another way to put it is that part…

Keep reading with a 7-day free trial

Subscribe to The Python Papers to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mike Driscoll
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More