diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-27 13:12:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 13:12:48 (GMT) |
commit | 12d6b5d156377c0877931a03ef2439dccb2f3711 (patch) | |
tree | d48dd9397abdaa5733a6533eaaba1c4c66777768 /Doc | |
parent | 5becf38a03e53a7c2a996285c7bf0ac5e2ef7d2a (diff) | |
download | cpython-12d6b5d156377c0877931a03ef2439dccb2f3711.zip cpython-12d6b5d156377c0877931a03ef2439dccb2f3711.tar.gz cpython-12d6b5d156377c0877931a03ef2439dccb2f3711.tar.bz2 |
bpo-30398: Add a docstring for re.error. (#1647)
Also document that some attributes may be None.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/re.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 96338dc..0b9d975 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -839,15 +839,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. |