Staging: this is not the live site, pydocs.org.
Command-line interface libraries curses.ascii Symbols in curses.ascii a alt Return the 8-bit character corresponding to the given ASCII character (the character bit value is bitwise-ored with 0x80). ascii Return the ASCII value corresponding to the low 7 bits of c. c controlnames A 33-element string array that contains the ASCII mnemonics for the thirty-two ASCII control characters from 0 (NUL) to 0x1f (US), in order, plus the mnemonic SP for the space character. ctrl Return the control character corresponding to the given character (the character bit value is bitwise-anded with 0x1f). d DC2 Device control 2, block-mode flow control DC3 XOFF, for flow control e ENQ Enquiry, goes with ACK flow control ETB End transmission block h HT Alias for TAB: “Horizontal tab” i isalnum Checks for an ASCII alphanumeric character; it is equivalent to isalpha(c) or isdigit(c). isalpha Checks for an ASCII alphabetic character; it is equivalent to isupper(c) or islower(c). isascii Checks for a character value that fits in the 7-bit ASCII set. isblank Checks for an ASCII blank character; space or horizontal tab. iscntrl Checks for an ASCII control character (in the range 0x00 to 0x1f or 0x7f). isctrl Checks for an ASCII control character (ordinal values 0 to 31). isdigit Checks for an ASCII decimal digit, '0' through '9'. isgraph Checks for any ASCII printable character except space. islower Checks for an ASCII lower-case character. ismeta Checks for a non-ASCII character (ordinal values 0x80 and above). isprint Checks for any ASCII printable character including space. ispunct Checks for any ASCII printable character which is not a space or an alphanumeric character. isspace Checks for ASCII white-space characters; space, line feed, carriage return, form feed, horizontal tab, vertical tab. isupper Checks for an ASCII uppercase letter. isxdigit Checks for an ASCII hexadecimal digit. n NAK Negative acknowledgement NL Alias for LF: “New line” r RS Record separator, block-mode terminator s SI Shift-in, resume default character set SO Shift-out, begin alternate character set SOH Start of heading, console interrupt u unctrl Return a string representation of the ASCII character c.
Python docs © Python Software Foundation · Examples CC0 ·
Source on GitHub · Not affiliated with the PSF