a re problem

Mikael Olofsson mikael at isy.liu.se
Fri May 20 10:23:53 EDT 2005



cheng wrote:

>>>p.sub('','%s') % "a\nbc"
>>>      
>>>
>'a\nbc'
>
>is it anyone got some idea why it happen?
>

Make that

p.sub('','%s' % "a\nbc")


Regards
/Mikael Olofsson

Universitetslektor (Senior Lecturer [BrE], Associate Professor [AmE])
Linköpings universitet

-----------------------------------------------------------------------
E-Mail:  mikael at isy.liu.se
WWW:     http://www.dtr.isy.liu.se/en/staff/mikael
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
-----------------------------------------------------------------------
Linköpings kammarkör: www.kammarkoren.com   Vi söker tenorer och basar! 




More information about the Python-list mailing list