Jun-05-2017, 04:00 AM
the ascii() function in py3 (repr() in py2) converts only 3 ASCII control characters to mnemonic escape sequenes (e.g. '\t' and '\n' and '\r') Python accepts these and others like '\a' and '\b' and '\v' and '\f' in string literals. anyone know of a function to convert to all of them?
anyone know of a function to convert FROM all escape sequences (like source literal compiling does)?
anyone know of a function to convert FROM all escape sequences (like source literal compiling does)?