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
…python#141706)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
…ythonGH-141523) (pythonGH-141710)

It does not support non-descriptor callables yet.
(cherry picked from commit d89eb2f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…ata socket can't connect (pythonGH-140835) (pythonGH-141657)

(cherry picked from commit f2bce51)

Co-authored-by: codenamenam <bluetire27@gmail.com>
…_NAN (pythonGH-141544) (python#141700)

(cherry picked from commit 630cd37)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
…in HTMLParser (pythonGH-140904) (pythonGH-141746)

(cherry picked from commit 95296a9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…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 <miro@hroncok.cz>
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
…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 <89152624+StanFromIreland@users.noreply.github.com>
…ython#141768)

Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Guido van Rossum <gvanrossum@microsoft.com>
…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 <36469655+Bobronium@users.noreply.github.com>
) (pythonGH-141790)

pythongh-141004: Document missing generator APIs (pythonGH-141409)
(cherry picked from commit 2da7ecc)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
…-141543) (pythonGH-141792)

pythongh-141004: Document missing `PyDateTime*` APIs (pythonGH-141543)
(cherry picked from commit 4273616)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
…) (pythonGH-141788)

pythongh-141004: Document `Py_MakePendingCalls` (pythonGH-141137)
(cherry picked from commit ce70103)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
…ythonGH-137872) (python#141608)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…python#141798)

Co-authored-by: Thomas Ballard <thomasballard0503@gmail.com>
…n AIX (pythonGH-141660) (python#141828)

Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
…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 <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
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 <davidben@davidben.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
…pythonGH-140109) (python#141854)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…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 <68491+gpshead@users.noreply.github.com>
…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 <68491+gpshead@users.noreply.github.com>
…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 <89152624+StanFromIreland@users.noreply.github.com>
…__ (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 <duaneg@dghda.com>
) (python#141894)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…ythonGH-141896)

pythongh-141004: Document `Py_ARRAY_LENGTH` (pythonGH-141601)
(cherry picked from commit e0773ea)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
… (python#141899)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
… (python#141902)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
python#141903)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
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.