New GitHub issue #119411 from JGFMK:<br>
<hr>
<pre>
### Bug description:
```python
import pprint
parts = ['a','b']
n = '\\'.join(parts)
print(n)
outf = open('C:/temp/out.txt', 'w', encoding='utf-8')
PP = pprint.PrettyPrinter(indent=4,stream=outf,width=220)
PP.pprint(n)
outf.close()
```
out.txt will contain doubled up \ .. But when n is printed to the console, it's not escaped.
There needs to be a config option to disable this fubar side effect.
### CPython versions tested on:
3.12
### Operating systems tested on:
Windows
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/119411">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>