Fastest quoting

Ivan Voras ivoras at __yahoo__.com_
Wed May 3 20:11:14 EDT 2006


What is the fastest way (execution speed) to backslash-escape characters 
from a specific set? Specifically: \r, \n and \0?

(i.e. I need "some\r\nstring\0" to become "some\\r\\nstring\\0")




More information about the Python-list mailing list