-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-106318: Add example for str.format() #137018
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
Conversation
…#106335) Remove private _PyThreadState and _PyInterpreterState C API functions: move them to the internal C API (pycore_pystate.h and pycore_interp.h). Don't export most of these functions anymore, but still export functions used by tests. Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C API, but keep it in the stable API.
This reverts commit ebfa093.
Yoav11
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! lgtm
|
Thanks @adorilson for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @adorilson for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
(cherry picked from commit 0cde70b) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
|
GH-141903 is a backport of this pull request to the 3.13 branch. |
(cherry picked from commit 0cde70b) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
|
GH-141904 is a backport of this pull request to the 3.14 branch. |
WIP to #106318
Besides adding two more examples to make the argument positions more explicit, I added the
.. doctest::directive.📚 Documentation preview 📚: https://cpython-previews--137018.org.readthedocs.build/