summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-05-27 13:37:40 (GMT)
committerGitHub <noreply@github.com>2017-05-27 13:37:40 (GMT)
commitb52c68a5a3f546cbbe1589f8bb3e51bfd55a6c15 (patch)
tree7f875e950037f8b0ba6f3c0b4aaa363a7b27f258 /Doc/library/re.rst
parent584ef2aecfdaaf753e3959a8ceb0ea745189ddeb (diff)
downloadcpython-b52c68a5a3f546cbbe1589f8bb3e51bfd55a6c15.zip
cpython-b52c68a5a3f546cbbe1589f8bb3e51bfd55a6c15.tar.gz
cpython-b52c68a5a3f546cbbe1589f8bb3e51bfd55a6c15.tar.bz2
[3.6] bpo-30398: Add a docstring for re.error. (GH-1647) (#1830)
Also document that some attributes may be None. (cherry picked from commit 12d6b5d)
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r--Doc/library/re.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 944c6fb..5ae304d 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -828,15 +828,15 @@ form.
.. attribute:: pos
- The index of *pattern* where compilation failed.
+ The index in *pattern* where compilation failed (may be ``None``).
.. attribute:: lineno
- The line corresponding to *pos*.
+ The line corresponding to *pos* (may be ``None``).
.. attribute:: colno
- The column corresponding to *pos*.
+ The column corresponding to *pos* (may be ``None``).
.. versionchanged:: 3.5
Added additional attributes.