-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
[DOC] Snippet code to str methods #24666
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
Move faulthandler._fatal_error() to _testcapi.fatal_error().
* Replace buffered fprintf() with unbuffered _Py_write_noraise() in Py_FatalError(). * _Py_DumpHexadecimal() now accepts uintptr_t.
The Py_FatalError() function and the faulthandler module now dump the list of extension modules on a fatal error. Add _Py_DumpExtensionModules() and _PyModule_IsExtension() internal functions.
…ctypes param reprs. (24239)
When stdin is a TTY, the test added in commit c13d899 is expected to fail. However, when it failed, it did not close its file descriptors. This is flagged by the refleak tests (but only when stdin is a TTY, which doesn't seem to be the case on CI).
Add a private list of all stdlib modules: _Py_module_names. * Add Tools/scripts/generate_module_names.py script. * Makefile: Add "make regen-module-names" command. * setup.py: Add --list-module-names option. * GitHub Action and Travis CI also runs "make regen-module-names", not ony "make regen-all", to ensure that the module names remains up to date.
…tack for column numbers (pythonGH-24266)
* addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups
…4210) Add --with-wheel-pkg-dir=PATH option to the ./configure script. If specified, the ensurepip module looks for setuptools and pip wheel packages in this directory: if both are present, these wheel packages are used instead of ensurepip bundled wheel packages. Some Linux distribution packaging policies recommend against bundling dependencies. For example, Fedora installs wheel packages in the /usr/share/python-wheels/ directory and don't install the ensurepip._bundled package. ensurepip: Remove unused runpy import.
pythonGH-24273) Automerge-Triggered-By: GH:pablogsal
…nGH-19346) Automerge-Triggered-By: GH:isidentical
@vstinner [noticed on python-dev](https://mail.python.org/archives/list/[email protected]/thread/O3T7SK3BGMFWMLCQXDODZJSBL42AUWTR/) that there is no what's new or porting entry for removal of asyncio ``loop`` parameter. This patch adds a basic guide. Co-Authored-By: Kyle Stanley <[email protected]>
bidst_wheel -> bdist_wheel Automerge-Triggered-By: GH:Mariatta
This reverts commit 0064c92.
The docs build failed, but I did not get the error. In my PC this build works properly. |
Docs wont build with your changes/setup. I can compile the Docs from the current main. NB I see the first change in Doc/library/array.rst does not exist in current Python 3 docs. Hence you will need to see if this is still relevant. |
The following commit authors need to sign the Contributor License Agreement: |
I just building in my PC and this works perfectly. I have synchronized with upstream before.
I doesn't touched in this file. Only Doc/library/stdtypes.rst. |
Can you rebase the branch / cherry-pick the commits so it doesn't grab all the 1k+ commits from main? I'm also not too sure about adding so many examples as it would make the page a bit bloated, but I'll let someone else comment on them. |
I have made the requested changes; please review again |
Thanks for making the requested changes! : please review the changes made to this pull request. |
In fact, the change was in a new branch/PR #105670 |
closing in favour of #105670 |
This PR improvements the str method documentation, adding snippet code in the follows methods and other minor improvements: