Explain re_matches' default better

This commit is contained in:
Hynek Schlawack 2019-09-09 11:59:15 +02:00
parent d153daa4ef
commit 424e14382c
1 changed files with 3 additions and 2 deletions

View File

@ -104,8 +104,9 @@ def matches_re(regex, flags=0, func=None):
(default 0)
:param callable func: which underlying :mod:`re` function to call (options
are :func:`re.fullmatch`, :func:`re.search`, :func:`re.match`, default
:func:`re.fullmatch`). They won't be used directly but on a
pre-:func:`re.compile`\ ed pattern.
is ``None`` which means either :func:`re.fullmatch` or an emulation of
it on Python 2). For performance reasons, they won't be used directly
but on a pre-:func:`re.compile`\ ed pattern.
.. versionadded:: 19.2.0
"""