-
-
Save stephengruppetta/fe5ca52090f0790539aa09784351ebae to your computer and use it in GitHub Desktop.
This file contains 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
import functools | |
class Article: | |
def set_platform(self, platform): | |
self.platform = platform | |
# This won't work! We'll fix it soon | |
set_substack = functools.partial( | |
set_platform, | |
'substack', | |
) | |
article = Article() | |
article.set_substack() | |
print(article.platform) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment