From: Edward Loper <edloper@gr...> - 2007-02-20 19:54:21
Currently, in the HTML output, unicode string values are displayed =20
using a format similar to repr. I.e., if you define a variable:
x =3D u'D=E9faut'
then its value will be rendered in the output docs as:
Similarly for parameter default values. But there's been a request =20
to change this to display the string literal using unicode . I'm =20
ambivalent about which way I prefer, so I wanted to see if anyone =20
else had opinions on the matter. Advantages of the current escaped =20
- Not all browsers can display all unicode characters; but all =20
can display ascii. E.g., rendering u'D=E9faut' in a text-based =20
like links just reduces it to "u'Default'", which is a different =20=
- Certain unicode characters can look very similar to ascii =20
other unicode characters; there's less chance of misunderstanding a
value if it's in ascii and unicode chars are escaped.
Advantages of the unescaped repr:
- Easier to read.
Get latest updates about Open Source Projects, Conferences and News.