bpo-10076: Compiled regular expression and match objects now are copyable. (#1000)

This commit is contained in:
Serhiy Storchaka 2017-04-16 10:16:03 +03:00 committed by GitHub
parent cd85d0b90b
commit fdbd01151d
5 changed files with 41 additions and 164 deletions

View file

@ -970,6 +970,11 @@ attributes:
The pattern string from which the RE object was compiled.
.. versionchanged:: 3.7
Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Compiled
regular expression objects are considered atomic.
.. _match-objects:
Match Objects
@ -1171,6 +1176,11 @@ Match objects support the following methods and attributes:
The string passed to :meth:`~regex.match` or :meth:`~regex.search`.
.. versionchanged:: 3.7
Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Match objects
are considered atomic.
.. _re-examples:
Regular Expression Examples