This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cool-RR
Recipients cool-RR
Date 2020-03-19.17:40:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584639650.79.0.177965379054.issue40016@roundup.psfhosted.org>
In-reply-to
Content
Today I was tripped up by an inconsistency in the `re` docstring. I wanted to use DOTALL as a flag inside my regex, rather than as an argument to the `compile` function. Here are two lines from the docstring:

    (?aiLmsux) Set the A, I, L, M, S, U, or X flag for the RE (see below).
    ...
    S  DOTALL      "." matches any character at all, including the newline.

The DOTALL flag appears as an uppercase S in 2 places, and as a lowercase s in one place. This is confusing, and I initially tried using the uppercase S only to get an error.

I'm attaching a PR to this ticket.
History
Date User Action Args
2020-03-19 17:40:50cool-RRsetrecipients: + cool-RR
2020-03-19 17:40:50cool-RRsetmessageid: <1584639650.79.0.177965379054.issue40016@roundup.psfhosted.org>
2020-03-19 17:40:50cool-RRlinkissue40016 messages
2020-03-19 17:40:50cool-RRcreate