Problem stripping line feeds

Pierre-Frédéric Caillaud peufeu at free.fr
Sun Jul 25 15:28:10 EDT 2004



	Try the string.translate function, with an identity translator (created  
by string.maketrans), and a list of chars to delete (here you put CR and  
LF). This will probably be the fastest option.




More information about the Python-list mailing list