gh-121027: Make the functools.partial object a method descriptor by serhiy-storchaka · Pull Request #121089 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request
pythonGH-121089) Co-authored-by: d.grigonis <dgrigonis@users.noreply.github.com>
estyxx pushed a commit to estyxx/cpython that referenced this pull request
pythonGH-121089) Co-authored-by: d.grigonis <dgrigonis@users.noreply.github.com>
JelleZijlstra added a commit that referenced this pull request
PR #121089 added an eager import for types.MethodType, but still left the existing hacks for lazily importing from types. We could also create MethodType internally in functools.py (e.g., by using `type(Placeholder.__repr__)`, but it feels not worth it at this point, so instead I unlazified all the usages of types in the module.
This was referenced
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