Curious- Is it possible / reasonable to create class constants as strings that contain non-printable characters? For example, I want to store a string (“ESC!?”) which contains an embedded ESC character. I would normally construct as:
GET_PRINTER_STATUS_CMD = chr(27) + "!?"
This is one example from a bunch of fixed strings used for interrogating the status of a serially connected device. Since there are so many of them I thought it might make the code more self-documenting if I could throw them into class constants with meaningful names.