Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add example for NOFLAG
  • Loading branch information
akulakov committed Jan 20, 2022
commit de7fc51c12f123b28ca7bd3fa5b509137e814c7b
8 changes: 7 additions & 1 deletion Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,13 @@ form.

.. data:: NOFLAG

Indicates no flag being applied, the value is ``0``.
Indicates no flag being applied, the value is ``0``. This flag may be used
as a default value for a function keyword argument or as a base value that
will be conditionally ORed with other flags. Example of use as a default
value::

def myfunc(text, flag=re.NOFLAG):
return re.match(text, flag)

.. versionadded:: 3.11

Expand Down