cpython/Misc/NEWS.d/next/Documentation
Miss Islington (bot) aa06a84099
bpo-42272: fix misleading warning filter message/module docs (GH-23172)
* bpo-42272: improve message/module warning filter docs

"The Warnings Filter" section of the warnings module documentation
describes the message and module filters as "a string containing a
regular expression".  While that is true when they are arguments to the
filterwarnings function, it is not true when they appear in -W or
$PYTHONWARNINGS where they are matched literally (after stripping any
starting/ending whitespace).  Update the documentation to note when they
are matched literally.  Also clarify that module matches the
"fully-qualified module name", rather than "module name" which is
ambiguous.

skip news (since this is a doc fix)

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

* bpo-42272: remove bad submodule warning filter doc

The `error:::mymodule[.*]` example in the "Describing Warning Filters"
section of the warnings module documentation does not behave as the
comment describes.  Since the module portion of the filter string is
interpreted literally, it would match a module with a fully-qualified
name that is literally `mymodule[.*]`.

Unfortunately, there is not a way to match '"module" and any subpackages
of "mymodule"' as documented, since the module part of a filter string
is matched literally.  Instead, update the filter and comment to match
only "mymodule".

skip news (since this is a doc fix)

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

* bpo-42272: add warning filter doc changes to NEWS

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
(cherry picked from commit 8136606769)

Co-authored-by: Kevin Locke <kevin@kevinlocke.name>
2022-05-29 19:03:15 -07:00
..
2017-12-10-19-13-39.bpo-13553.gQbZs4.rst bpo-13553: Document tkinter.Tk args (GH-4786) 2022-05-09 21:27:37 -07:00
2019-09-12-08-28-17.bpo-38056.6ktYkc.rst bpo-38056: overhaul Error Handlers section in codecs documentation (GH-15732) 2022-05-08 20:16:26 -07:00
2020-07-07-22-54-51.bpo-41233.lyUJ8L.rst bpo-41233: Add links to errnos referenced in exceptions docs (GH-21380) 2022-04-04 19:30:06 -07:00
2020-11-12-21-26-31.bpo-42340.apumUL.rst bpo-42340: Document issues around KeyboardInterrupt (GH-23255) 2022-03-29 14:45:47 -07:00
2021-11-12-11-03-55.bpo-45790.6yuhe8.rst bpo-45790: List macros in same order in which fields are described (GH-29529) 2022-04-04 19:57:22 -07:00
2022-01-13-16-03-15.bpo-40838.k3NVCf.rst bpo-40838: document getdoc, getmodule, getsourcefile in inspect returns None (GH-30575) 2022-05-18 05:49:15 -07:00
2022-01-23-20-44-53.bpo-26792.dQ1v1W.rst bpo-26792: Improve docstrings of runpy module run_functions (GH-30729) 2022-04-29 11:45:43 -07:00
2022-03-08-22-10-38.bpo-46962.FIVe9I.rst [3.10] gh-91118: Fix docstrings that do not honor --without-doc-strings (GH-31769) (#91662) 2022-04-19 13:01:09 -07:00
2022-03-28-12-29-42.bpo-47138.2B4N-k.rst bpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32154) 2022-03-28 13:06:16 -04:00
2022-04-01-09-28-31.bpo-38668.j4mrqW.rst gh-82849: revise intro to os.path.rst (GH-32232) 2022-04-15 21:38:11 -07:00
2022-04-10-20-28-20.bpo-44347.Q1m3DM.rst gh-88513: clarify shutil.copytree's dirs_exist_ok arg (GH-91434) (GH-91464) 2022-04-15 15:55:13 +02:00
2022-04-19-20-16-00.gh-issue-91547.LsNWER.rst gh-91547: Remove "Undocumented modules" page (GH-91682) 2022-04-22 16:33:46 -07:00
2022-04-23-00-22-54.gh-issue-91783.N09dRR.rst gh-91783: Document security considerations for shutil.unpack_archive (GH-91844) 2022-05-02 10:34:59 -07:00
2022-04-24-22-09-31.gh-issue-91888.kTjJLx.rst Fix use of the default role in a news entry. (#92500) 2022-05-08 19:32:54 +02:00
2022-05-18-23-58-26.gh-issue-92240.bHvYiz.rst gh-92240 : Include release dates for "What's New In Python 3.X" (GH-92937) 2022-05-28 20:41:40 -07:00
2022-05-26-11-33-23.gh-issue-86438.kEGGmK.rst bpo-42272: fix misleading warning filter message/module docs (GH-23172) 2022-05-29 19:03:15 -07:00
README.rst

Put news entry `blurb`_ files for the *Documentation* section in this directory.

.. _blurb: https://pypi.org/project/blurb/