]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document actual string.punctuation value. (GH-12270)
authorAndre Delfino <adelfino@gmail.com>
Thu, 14 Mar 2019 19:28:31 +0000 (16:28 -0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Mar 2019 19:28:31 +0000 (21:28 +0200)
Doc/library/string.rst
Doc/tools/susp-ignored.csv

index 46b2bfc82b738bc1279393672133b18d5a023b57..c2f65224bc8dafce8c34f5b4be38a8efb86799d2 100644 (file)
@@ -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
 
index 3c23dc12e3ad6ed3aa62818ca7d855bdc94750a8..68a278c1f4a7a6050eb38a5382ba2f3d97e9fa03 100644 (file)
@@ -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,