simulate backslash substitution identical to python parser

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Tue Apr 24 11:18:47 EDT 2001


24 Apr 2001 16:55:28 +0200, Harald Kirsch <kirschh at lionbioscience.com> pisze:

> Given that I have space1, is there a function which does the same
> translation as does the python interpreter when interpreting/compiling
> the line (*) such that in this case I end up with just one backslash?

Perhaps it would be easier to go the opposite way and apply repr to
a string to add backslashes.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list