cpython/Misc/NEWS.d
Victor Stinner a0cbdd84af
[3.13] gh-141570: can_colorize: Expect fileno() to raise OSError, as documented (#141716) (#141748)
gh-141570: can_colorize: Expect fileno() to raise OSError, as documented (#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():

8460dbfcd5/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 https://github.com/python/cpython/issues/141570



(cherry picked from commit 96f496a949)

Co-authored-by: Miro HronĨok <miro@hroncok.cz>
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
2025-11-19 14:28:31 +00:00
..
next [3.13] gh-141570: can_colorize: Expect fileno() to raise OSError, as documented (#141716) (#141748) 2025-11-19 14:28:31 +00:00
3.5.0.rst
3.5.0a1.rst [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
3.5.0a2.rst
3.5.0a3.rst
3.5.0a4.rst
3.5.0b1.rst
3.5.0b2.rst
3.5.0b3.rst
3.5.0b4.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.5.0rc1.rst gh-109634: Use :samp: role (GH-109635) 2023-09-23 09:31:20 +03:00
3.5.0rc2.rst
3.5.0rc3.rst
3.5.0rc4.rst
3.5.1.rst
3.5.1rc1.rst gh-109634: Use :samp: role (GH-109635) 2023-09-23 09:31:20 +03:00
3.5.2.rst
3.5.2rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.5.3.rst Add missing sections to blurbs (#114553) 2024-02-12 16:16:16 +02:00
3.5.3rc1.rst [3.13] GH-121970: Extract `misc_news` into a new extension (GH-129577) (#129586) 2025-02-02 16:24:48 +00:00
3.5.4.rst Docs: Update Donghee Na's name (#109743) 2023-09-22 12:52:57 -06:00
3.5.4rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.5.5.rst
3.5.5rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.0.rst Add missing sections to blurbs (#114553) 2024-02-12 16:16:16 +02:00
3.6.0a1.rst [3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121513) 2024-07-13 12:55:43 +00:00
3.6.0a2.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.0a3.rst NEWS: Reorder items by section (GH-92373) 2022-05-06 13:58:58 +09:00
3.6.0a4.rst [3.13] GH-121970: Extract `misc_news` into a new extension (GH-129577) (#129586) 2025-02-02 16:24:48 +00:00
3.6.0b1.rst [3.13] GH-121970: Extract `misc_news` into a new extension (GH-129577) (#129586) 2025-02-02 16:24:48 +00:00
3.6.0b2.rst gh-95454: Replace truthy/falsy with true/false (GH-95456) 2022-07-30 00:42:21 -07:00
3.6.0b3.rst
3.6.0b4.rst
3.6.0rc1.rst gh-106909: Use role :const: for referencing module constants (GH-106910) 2023-07-21 12:40:37 +03:00
3.6.0rc2.rst
3.6.1.rst
3.6.1rc1.rst
3.6.2.rst Add missing sections to blurbs (#114553) 2024-02-12 16:16:16 +02:00
3.6.2rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.2rc2.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.3.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.6.3rc1.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.6.4.rst
3.6.4rc1.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.6.5.rst
3.6.5rc1.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.6.6.rst
3.6.6rc1.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.7.0.rst
3.7.0a1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.7.0a2.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.7.0a3.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.7.0a4.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.7.0b1.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.7.0b2.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.7.0b3.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.7.0b4.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.7.0b5.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.7.0rc1.rst
3.8.0a1.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.8.0a2.rst [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
3.8.0a3.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.8.0a4.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.8.0b1.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.9.0a1.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.9.0a2.rst gh-101100: Fix Sphinx warnings in whatsnew/3.9.rst (#118364) 2024-04-28 20:31:22 +03:00
3.9.0a3.rst gh-101100: Fix Sphinx Lint warnings in Misc/ (#113946) 2024-01-13 00:25:04 +02:00
3.9.0a4.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.9.0a5.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.9.0a6.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.9.0b1.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.10.0a1.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.10.0a2.rst [3.13] gh-101100: Consolidate documentation on ModuleType attributes (#124709) (#125208) 2024-10-09 20:03:30 +01:00
3.10.0a3.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.10.0a4.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.10.0a5.rst [3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121513) 2024-07-13 12:55:43 +00:00
3.10.0a6.rst [3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121513) 2024-07-13 12:55:43 +00:00
3.10.0a7.rst [3.13] GH-103484: Fix permanently redirects reported by linkcheck (GH-124144) (#124151) 2024-09-24 00:43:04 +00:00
3.10.0b1.rst [3.13] gh-105812: Use the `:deco:` role in place of manual decorator markup (GH-139619) (#139628) 2025-10-05 20:28:30 +00:00
3.11.0a1.rst [3.13] gh-105812: Use the `:deco:` role in place of manual decorator markup (GH-139619) (#139628) 2025-10-05 20:28:30 +00:00
3.11.0a2.rst [3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121513) 2024-07-13 12:55:43 +00:00
3.11.0a3.rst [3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121513) 2024-07-13 12:55:43 +00:00
3.11.0a4.rst [3.13] Use roles :data: and :const: for referencing module variables (GH-129507) (GH-129649) 2025-02-04 14:25:18 +00:00
3.11.0a5.rst [3.13] gh-101100: Consolidate documentation on ModuleType attributes (#124709) (#125208) 2024-10-09 20:03:30 +01:00
3.11.0a6.rst [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
3.11.0a7.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.11.0b1.rst [3.13] gh-105812: Use the `:deco:` role in place of manual decorator markup (GH-139619) (#139628) 2025-10-05 20:28:30 +00:00
3.12.0a1.rst [3.13] gh-101100: Consolidate documentation on ModuleType attributes (#124709) (#125208) 2024-10-09 20:03:30 +01:00
3.12.0a2.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.12.0a3.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.12.0a4.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.12.0a5.rst [3.13] Fix typos in docs and what's new (#123451) 2024-09-02 13:15:02 +02:00
3.12.0a6.rst [3.13] GH-103484: Fix permanently redirects reported by linkcheck (GH-124144) (#124151) 2024-09-24 00:43:04 +00:00
3.12.0a7.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.12.0b1.rst [3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121513) 2024-07-13 12:55:43 +00:00
3.13.0.rst Python 3.13.0 2024-10-07 07:02:14 +02:00
3.13.0a1.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.13.0a2.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.13.0a3.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.13.0a4.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.13.0a5.rst [3.13] gh-72249: Correct wording of GH-101910 blurb (GH-138471) 2025-09-03 18:27:23 +00:00
3.13.0a6.rst [3.13] Fix a few typos found in the docs (GH-127126) (GH-127181) 2024-11-23 00:09:35 +00:00
3.13.0b1.rst [3.13] gh-123517: Remove unnecessary :meth: parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
3.13.0b2.rst gh-118507: Amend news entry to mention ntpath.isfile bugfix (GH-120817) 2024-07-04 15:15:22 +00:00
3.13.0b3.rst [3.13] gh-123492: Remove unnecessary :func: parentheses (gh-123493) (#123513) 2024-08-30 20:14:48 +03:00
3.13.0b4.rst Python 3.13.0b4 2024-07-18 11:41:38 +02:00
3.13.0rc1.rst Python 3.13.0rc1 2024-07-31 20:18:39 +02:00
3.13.0rc2.rst [3.13] gh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs (#124480) (#124556) 2024-09-25 17:29:48 -07:00
3.13.0rc3.rst Python 3.13.0rc3 2024-10-01 04:03:08 +02:00
3.13.1.rst Python 3.13.1 2024-12-03 18:59:52 +01:00
3.13.2.rst Python 3.13.2 2025-02-04 15:51:09 +01:00
3.13.3.rst Python 3.13.3 2025-04-08 15:54:08 +02:00
3.13.4.rst [3.13] gh-91555: Revert disabling of logger while handling log record. (GH-135858) (GH-135911) 2025-06-25 19:24:55 +01:00
3.13.5.rst Python 3.13.5 2025-06-11 17:36:57 +02:00
3.13.6.rst Python 3.13.6 2025-08-06 15:05:20 +02:00
3.13.7.rst Python 3.13.7 2025-08-14 13:12:11 +02:00
3.13.8.rst Python 3.13.8 2025-10-07 14:01:51 +02:00
3.13.9.rst Python 3.13.9 2025-10-14 15:52:31 +02:00