[New-bugs-announce] [issue34920] PYTHONWARNINGS entries are escaped

Nikolaus Rath report at bugs.python.org
Sun Oct 7 06:30:17 EDT 2018


New submission from Nikolaus Rath <Nikolaus at rath.org>:

According to https://docs.python.org/3/library/warnings.html#describing-warning-filters:

"The meaning of each of these fields [of PYTHONWARNINGS] is as described in <The Warnings Filter>."

The description of the "The Warnings filter" says

"module is a string containing a regular expression that the module name must match."

However, when parsing PYTHONWARNINGS, the warnings module explicitly escapes the module field.

----------
components: Library (Lib)
messages: 327272
nosy: nikratio
priority: normal
severity: normal
status: open
title: PYTHONWARNINGS entries are escaped
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34920>
_______________________________________


More information about the New-bugs-announce mailing list