-
-
Notifications
You must be signed in to change notification settings - Fork 34k
Backport 7f50a5f 3.13 #143739
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
Closed
Closed
Backport 7f50a5f 3.13 #143739
Conversation
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
…python#141706) Co-authored-by: Mariusz Felisiak <[email protected]>
…ythonGH-141523) (pythonGH-141710) It does not support non-descriptor callables yet. (cherry picked from commit d89eb2f) Co-authored-by: Serhiy Storchaka <[email protected]>
…ata socket can't connect (pythonGH-140835) (pythonGH-141657) (cherry picked from commit f2bce51) Co-authored-by: codenamenam <[email protected]>
…_NAN (pythonGH-141544) (python#141700) (cherry picked from commit 630cd37) Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]>
…ython#141742) Co-authored-by: Guo Ci <[email protected]>
…in HTMLParser (pythonGH-140904) (pythonGH-141746) (cherry picked from commit 95296a9) Co-authored-by: Serhiy Storchaka <[email protected]>
…r, as documented (python#141716) (python#141748) pythongh-141570: can_colorize: Expect fileno() to raise OSError, as documented (python#141716) In Fedora, we've been given a slightly incomplete reproducer for a problematic Python 3.14 color-related change in argparse that leads to an exception when Python is used from mod_wsgi: https://bugzilla.redhat.com/2414940 mod_wsgi replaces sys.stdout with a custom object that raises OSError on .fileno(): https://github.com/GrahamDumpleton/mod_wsgi/blob/8460dbfcd5c7108892b3cde9fab7cbc1caa27886/src/server/wsgi_logger.c#L434-L440 This should be supported, as the documentation of fileno explicitly says: > An OSError is raised if the IO object does not use a file descriptor. https://docs.python.org/3.14/library/io.html#io.IOBase.fileno The previously expected exception inherits from OSError, so it is still expected. Fixes python#141570 (cherry picked from commit 96f496a) Co-authored-by: Miro Hrončok <[email protected]> Co-authored-by: Cody Maloney <[email protected]>
…thonGH-141725) (pythonGH-141762) pythongh-141004: Document `Py_LOCAL` and `Py_LOCAL_INLINE` (pythonGH-141725) (cherry picked from commit 3149d64) Co-authored-by: Stan Ulbrych <[email protected]>
…ython#141768) Co-authored-by: Guido van Rossum <[email protected]> Co-authored-by: Guido van Rossum <[email protected]>
…uple (pythonGH-141759) (pythonGH-141783) The 5th element of the __reduce__ tuple should be an iterator. (cherry picked from commit 41b9ad5) Co-authored-by: Arseny Boykov <[email protected]>
) (pythonGH-141790) pythongh-141004: Document missing generator APIs (pythonGH-141409) (cherry picked from commit 2da7ecc) Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…-141543) (pythonGH-141792) pythongh-141004: Document missing `PyDateTime*` APIs (pythonGH-141543) (cherry picked from commit 4273616) Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…) (pythonGH-141788) pythongh-141004: Document `Py_MakePendingCalls` (pythonGH-141137) (cherry picked from commit ce70103) Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…ythonGH-137872) (python#141608) Co-authored-by: Adam Turner <[email protected]>
…python#141798) Co-authored-by: Thomas Ballard <[email protected]>
…n AIX (pythonGH-141660) (python#141828) Co-authored-by: Ayappan Perumal <[email protected]>
…verage (pythonGH-141613) (python#141826) * pythongh-141612: improve `test_trampoline_works_with_forks` coverage (python#141613) (cherry picked from commit f15f6d0)
…ocess.rst` (pythonGH-139576) (python#139788) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
pythonGH-141802) (python#141848) pythongh-141801: Use accessors for ASN1_STRING fields in libssl (pythonGH-141802) * pythongh-141801: Use accessors for ASN1_STRING fields While ASN1_STRING is currently exposed, it is better to use the accessors. See openssl/openssl#29117 where, if the type were opaque, OpenSSL's X509 objects could be much more memory-efficient. * Update Modules/_ssl.c * Update Modules/_ssl.c --------- (cherry picked from commit c41fce0) Co-authored-by: David Benjamin <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
…pythonGH-140109) (python#141854) Co-authored-by: Weilin Du <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…erver before fork (pythonGH-141849) (python#141852) pythongh-98552: flush std streams in the multiprocessing forkserver before fork (pythonGH-141849) * flush std streams in the multiprocessing forkserver before fork * NEWS (cherry picked from commit 58badb1) Co-authored-by: Gregory P. Smith <[email protected]>
…sh std streams in the multiprocessing forkserver before fork (pythonGH-141849)" (pythonGH-141871) (python#141873) pythongh-98552: Revert (unneeded, already done elsewhere) "flush std streams in the multiprocessing forkserver before fork (pythonGH-141849)" (pythonGH-141871) Revert (unneeded, already done elsewhere) "pythongh-98552: flush std streams in the multiprocessing forkserver before fork (pythonGH-141849)" This reverts commit 58badb1. (cherry picked from commit 614a28b) Co-authored-by: Gregory P. Smith <[email protected]>
…g events too frequently (pythongh-141845) (pythongh-141880) If we overflowed the global version counter (i.e., after 2*24 calls to `_PyMonitoring_SetEvents`), we bailed out after setting global monitoring events but before instrumenting code objects, which led to assertion errors later on. Also add a `time.sleep()` to `test_free_threading.test_monitoring` to avoid overflowing the global version counter. (cherry picked from commit e457d60)
…tension (pythonGH-141882) (python#141884) Co-authored-by: Stan Ulbrych <[email protected]>
…__ (pythonGH-138686) (python#141887) pythongh-135335: Simplify preload regression test using __main__ (pythonGH-138686) Simplify preload regression test using `__main__` With the fix for pythongh-126631 `__main__` modules can be preloaded and the regression test for pythongh-135335 can be simplified to just use a self-contained script rather than requiring a module. Note this assumes and implicitly tests that `__main__` is preloaded by default. (cherry picked from commit 425f24e) Co-authored-by: Duane Griffin <[email protected]>
) (python#141894) Co-authored-by: Adorilson Bezerra <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…ythonGH-141896) pythongh-141004: Document `Py_ARRAY_LENGTH` (pythonGH-141601) (cherry picked from commit e0773ea) Co-authored-by: Yashraj <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
… (python#141899) Co-authored-by: Adorilson Bezerra <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
… (python#141902) Co-authored-by: Adorilson Bezerra <[email protected]> Co-authored-by: Éric <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
python#141903) Co-authored-by: Adorilson Bezerra <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📚 Documentation preview 📚: https://cpython-previews--143739.org.readthedocs.build/