Skip to content

Conversation

@guoci
Copy link
Contributor

@guoci guoci commented Jan 12, 2026

miss-islington and others added 30 commits November 18, 2025 10:38
…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]>
…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]>
…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]>
…verage (pythonGH-141613) (python#141826)

* pythongh-141612: improve `test_trampoline_works_with_forks` coverage (python#141613)

(cherry picked from commit f15f6d0)
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]>
…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)
…__ (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]>
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.