8000 gh-121027: Add a future warning in functools.partial.__get__ by serhiy-storchaka · Pull Request #121086 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-121027: Add a future warning in functools.partial.__get__ #121086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Doc/whatsnew/3.13.rst
Co-authored-by: T. Wouters <thomas@python.org>
  • Loading branch information
serhiy-storchaka and Yhg1s authored Jun 27, 2024
commit fa4be093e5769abe19c153255ce475afb1b717bc
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,7 @@ Changes in the Python API
returned by :meth:`zipfile.ZipFile.open` was changed from ``'r'`` to ``'rb'``.
(Contributed by Serhiy Storchaka in :gh:`115961`.)

* :class:`functools.partial` emits now a :exc:`FutureWarning` when it is
* :class:`functools.partial` now emits a :exc:`FutureWarning` when it is
used as a method.
Its behavior will be changed in future Python versions.
Wrap it in :func:`staticmethod` if you want to preserve the old behavior.
Expand Down
Loading
0