Oct-14-2016, 04:49 AM
i know python has such a thing but cannot remember the terms or names for this. my guesses are not helping my search.
foo('\\'+'n'+'\\'+'t') -> '\n\t'
e.g having the backslash codes (any of them, not just these 2), convert them to the actual vales. this is conversion done to string literals somewhere in the python interpreter. but i have seen this before, so i know exists as a simple function call, but my searches are all failing. repr() does the reverse.
foo('\\'+'n'+'\\'+'t') -> '\n\t'
e.g having the backslash codes (any of them, not just these 2), convert them to the actual vales. this is conversion done to string literals somewhere in the python interpreter. but i have seen this before, so i know exists as a simple function call, but my searches are all failing. repr() does the reverse.