In python3.6, I tried
In [60]: a = '\a'
In [61]: b = '\b'
In [62]: c = '\c'
In [63]: l =[a, b, c]
If test l
In [64]: l
#it output following list instead of ['a','\b','\c']
Out[64]: ['\x07', '\x08', '\\c']
encapsulate them directly in a list.
In [70]: ['\a','\b','\c']
#it output following list instead of ['a','\b','\c']
Out[70]: ['\x07', '\x08', '\\c']
What's the mechanism behind it?