Skip to content
Snippets Groups Projects
Select Git revision
  • 3.10
  • 3.11
  • main default protected
  • revert-15688-bpo-38031-_io-FileIO-opener-crash
  • 3.8
  • 3.9
  • 3.7
  • enum-fix_auto
  • branch-v3.11.0
  • backport-c3648f4-3.11
  • gh-93963/remove-importlib-resources-abcs
  • refactor-wait_for
  • shared-testcase
  • v3.12.0a2
  • v3.12.0a1
  • v3.11.0
  • v3.8.15
  • v3.9.15
  • v3.10.8
  • v3.7.15
  • v3.11.0rc2
  • v3.8.14
  • v3.9.14
  • v3.7.14
  • v3.10.7
  • v3.11.0rc1
  • v3.10.6
  • v3.11.0b5
  • v3.11.0b4
  • v3.10.5
  • v3.11.0b3
  • v3.11.0b2
  • v3.9.13
33 results

cpython

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Miss Islington (bot) authored
    * 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: default avatarKevin 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: default avatarKevin Locke <kevin@kevinlocke.name>
    
    * bpo-42272: add warning filter doc changes to NEWS
    
    Signed-off-by: default avatarKevin Locke <kevin@kevinlocke.name>
    (cherry picked from commit 81366067)
    
    Co-authored-by: default avatarKevin Locke <kevin@kevinlocke.name>
    cc31cfc2
    History
    Name Last commit Last update