Mark Dickinson <dicki...@gmail.com> added the comment:

Ah, I think I see: you want a function that turns the string "foo\bar" into 
"foo\\bar". Even if this were a good idea, I don't think it's feasible to do it 
in a non-surprising way.

For example, given such a function f, what outputs would you expect for:

  (a) f("\012"), and
  (b) f("\n")?

(And yes, this is a trick question: "\012" and "\n" are the same string.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44308>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to