MCPcopy Index your code
hub / github.com/python/cpython / control_characters_c0

Function control_characters_c0

Lib/test/support/__init__.py:3316–3320  ·  view source on GitHub ↗

Returns a list of C0 control characters as strings. C0 control characters defined as the byte range 0x00-0x1F, and 0x7F.

()

Source from the content-addressed store, hash-verified

3314
3315
3316def control_characters_c0() -> list[str]:
3317 """Returns a list of C0 control characters as strings.
3318 C0 control characters defined as the byte range 0x00-0x1F, and 0x7F.
3319 """
3320 return [chr(c) for c in range(0x00, 0x20)] + ["\x7F"]
3321
3322
3323_ROOT_IN_POSIX = hasattr(os, 'geteuid') and os.geteuid() == 0

Calls

no outgoing calls

Tested by 4

Used in the wild real call sites across dependent graphs

searching dependent graphs…