On 7/17/09 7:53 PM, Chris Camacho wrote:
>  hmmm...
>
>  being that
>
>  print '\\'
>
>  displays
>
>  '\'
>
>  isn't that a bug?
>
>
that is one of my question that it been troubling me. why is replace
have a special treatment in dealing with escape characters while other
function such as print does the exact thing which escapes the character.
if i follow it correctly replace should only see one backslash to be
inserted in the string instead of two.

i have found this post in python mailing list:

     http://mail.python.org/pipermail/python-list/2007-May/614590.html.

But I want the exact opposite from that post. from HTML entries to
Unicode. so there must be some way to reverse that function. correct?

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to