[Python-checkins] Document actual string.punctuation value. (GH-12270)

Serhiy Storchaka webhook-mailer at python.org
Thu Mar 14 15:28:34 EDT 2019


https://github.com/python/cpython/commit/b420428cf5c27ab90a206bf107cb055c84dcccd1
commit: b420428cf5c27ab90a206bf107cb055c84dcccd1
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2019年03月14日T21:28:31+02:00
summary:
Document actual string.punctuation value. (GH-12270)
files:
M Doc/library/string.rst
M Doc/tools/susp-ignored.csv
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 46b2bfc82b73..c2f65224bc8d 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -56,8 +56,7 @@ The constants defined in this module are:
 .. data:: punctuation
 
 String of ASCII characters which are considered punctuation characters
- in the ``C`` locale.
-
+ in the ``C`` locale: ``!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~``.
 
 .. data:: printable
 
diff --git a/Doc/tools/susp-ignored.csv b/Doc/tools/susp-ignored.csv
index 3c23dc12e3ad..68a278c1f4a7 100644
--- a/Doc/tools/susp-ignored.csv
+++ b/Doc/tools/susp-ignored.csv
@@ -215,6 +215,7 @@ library/stdtypes,,::,>>> hash(v[::-2]) == hash(b'abcefg'[::-2])
 library/stdtypes,,:len,s[len(s):len(s)]
 library/stdtypes,,::,>>> y = m[::2]
 library/stdtypes,,::,>>> z = y[::-2]
+library/string,,`,"!""#$%&'()*+,-./:;<=>?@[\]^_`{|}~"
 library/subprocess,,`,"output=`dmesg | grep hda`"
 library/subprocess,,`,"output=`mycmd myarg`"
 library/tarfile,,:bz2,


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /