summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-16 07:16:03 (GMT)
committerGitHub <noreply@github.com>2017-04-16 07:16:03 (GMT)
commitfdbd01151dbd5feea3e4c0316d102db3d2a2a412 (patch)
treeeba32283c798704a241b13119cbbc74c1da3e069 /Doc
parentcd85d0b90b39310c8ca7329bd35e82c2c1c8f4ad (diff)
downloadcpython-fdbd01151dbd5feea3e4c0316d102db3d2a2a412.zip
cpython-fdbd01151dbd5feea3e4c0316d102db3d2a2a412.tar.gz
cpython-fdbd01151dbd5feea3e4c0316d102db3d2a2a412.tar.bz2
bpo-10076: Compiled regular expression and match objects now are copyable. (#1000)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index ce90ec7..0fa7196 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -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