@@ -931,7 +931,6 @@ Functions
931931
932932
933933.. function :: prefixmatch(pattern, string, flags=0)
934- .. function :: match(pattern, string, flags=0)
935934
936935 If zero or more characters at the beginning of *string * match the regular
937936 expression *pattern *, return a corresponding :class: `~re.Match `. Return
@@ -954,7 +953,11 @@ Functions
954953 :func: `~re.match `. Use that name when you need to retain compatibility with
955954 older Python versions.
956955
957- .. deprecated :: 3.15
956+ .. versionadded :: 3.15
957+
958+ .. function :: match(pattern, string, flags=0)
959+
960+ .. soft-deprecated :: 3.15
958961 :func: `~re.match ` has been :term: `soft deprecated ` in favor of
959962 the alternate :func: `~re.prefixmatch ` name of this API which is
960963 more explicitly descriptive. Use it to better
@@ -1285,7 +1288,6 @@ Regular expression objects
12851288
12861289
12871290.. method :: Pattern.prefixmatch(string[, pos[, endpos]])
1288- .. method :: Pattern.match(string[, pos[, endpos]])
12891291
12901292 If zero or more characters at the *beginning * of *string * match this regular
12911293 expression, return a corresponding :class: `~re.Match `. Return ``None `` if the
@@ -1310,7 +1312,11 @@ Regular expression objects
13101312 :meth: `~Pattern.match `. Use that name when you need to retain compatibility
13111313 with older Python versions.
13121314
1313- .. deprecated :: 3.15
1315+ .. versionadded :: 3.15
1316+
1317+ .. method :: Pattern.match(string[, pos[, endpos]])
1318+
1319+ .. soft-deprecated :: 3.15
13141320 :meth: `~Pattern.match ` has been :term: `soft deprecated ` in favor of
13151321 the alternate :meth: `~Pattern.prefixmatch ` name of this API which is
13161322 more explicitly descriptive. Use it to
0 commit comments