From 62b525901f06c0ff43d76ca8af76cec4431bf4d6 Mon Sep 17 00:00:00 2001 From: Henk-Jaap Wagenaar Date: Sat, 26 Aug 2017 14:11:41 +0100 Subject: [PATCH 1/3] Add link to regular expression object heading in re documentation and clarify that it has more than 2 methods. --- Doc/library/re.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 0b9d9755f30ec6..138e7d87996be8 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -490,9 +490,10 @@ form. .. function:: compile(pattern, flags=0) - Compile a regular expression pattern into a regular expression object, which - can be used for matching using its :func:`~regex.match` and - :func:`~regex.search` methods, described below. + Compile a regular expression pattern into a :ref:`regular expression object + `, which can be used for matching using its + :func:`~regex.match`, :func:`~regex.search` and other methods, described + below. The expression's behaviour can be modified by specifying a *flags* value. Values can be any of the following variables, combined using bitwise OR (the From 117838d5fa8b60c8ba31df733aa1d51365ead640 Mon Sep 17 00:00:00 2001 From: Henk-Jaap Wagenaar Date: Sat, 26 Aug 2017 14:26:04 +0100 Subject: [PATCH 2/3] Add news message. --- .../Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst diff --git a/Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst b/Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst new file mode 100644 index 00000000000000..c4192030be972e --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst @@ -0,0 +1,5 @@ +documentation of re.compile improved + +The re.compile mention of compiled regular expression objects now links to +the relevant heading. Also, it is more explicit that more than the methods +listed can be used. From 0ca1c75b8a99792c7048bc106dd92fe18b3f6e8c Mon Sep 17 00:00:00 2001 From: Mariatta Date: Sun, 27 Aug 2017 22:34:10 -0700 Subject: [PATCH 3/3] Delete misc news News item is not needed in this case. --- .../Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst diff --git a/Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst b/Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst deleted file mode 100644 index c4192030be972e..00000000000000 --- a/Misc/NEWS.d/next/Documentation/2017-08-26-14-25-26.bpo-26656.ILVP13.rst +++ /dev/null @@ -1,5 +0,0 @@ -documentation of re.compile improved - -The re.compile mention of compiled regular expression objects now links to -the relevant heading. Also, it is more explicit that more than the methods -listed can be used.