This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author planet36
Recipients planet36
Date 2014-12-09.03:51:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418097121.16.0.891016494417.issue23017@psf.upfronthosting.co.za>
In-reply-to
Content
string.printable includes all whitespace characters.  However, the only whitespace character that is printable is the space (0x20).


By definition, the only ASCII characters considered printable are:
    alphanumeric characters
    punctuation characters
    the space character (not all whitespace characters)


Source:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03

7.2 POSIX Locale

Conforming systems shall provide a POSIX locale, also known as the C locale.


7.3.1 LC_CTYPE

space
    Define characters to be classified as white-space characters.

    In the POSIX locale, exactly <space>, <form-feed>, <newline>, <carriage-return>, <tab>, and <vertical-tab> shall be included.

cntrl
    Define characters to be classified as control characters.

    In the POSIX locale, no characters in classes alpha or print shall be included.

graph
    Define characters to be classified as printable characters, not including the <space>.

    In the POSIX locale, all characters in classes alpha, digit, and punct shall be included; no characters in class cntrl shall be included.

print
    Define characters to be classified as printable characters, including the <space>.

    In the POSIX locale, all characters in class graph shall be included; no characters in class cntrl shall be included.


LC_CTYPE Category in the POSIX Locale

# "print" is by default "alnum", "punct", and the <space>
History
Date User Action Args
2014-12-09 03:52:01planet36setrecipients: + planet36
2014-12-09 03:52:01planet36setmessageid: <1418097121.16.0.891016494417.issue23017@psf.upfronthosting.co.za>
2014-12-09 03:52:00planet36linkissue23017 messages
2014-12-09 03:52:00planet36create