mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
bpo-10076: Compiled regular expression and match objects now are copyable. (#1000)
This commit is contained in:
parent
cd85d0b90b
commit
fdbd01151d
5 changed files with 41 additions and 164 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue