You got that right, it's only printing a double backslash because you are not printing it:
>>> '\\'.join(my_tuple)
'parent\\child'
>>> print '\\'.join(my_tuple)
parent\child
it's the same difference than __str__
and __repr__
:
>>> '\\'.__repr__()
"'\\\\'"
>>> '\\'.__str__()
'\\'