Created
September 3, 2019 20:01
-
-
Save Ouwen/cea27e20300cbc9534001220fa0038a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import partial | |
# Try to code partial from scratch! (hint, use *args and **kwargs as parameter catch alls) | |
def function_with_several_params(a='None', b='None'): | |
print(a, b) | |
tmp = partial(function_with_several_params, a='hello') | |
tmp(b='goodbye') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment