Forcing quote characters in repr(STRING), how?
François Pinard
pinard at iro.umontreal.ca
Wed May 2 17:26:46 EDT 2001
Hi, people.
When using `repr()' on a string, Python automatically selects if it will
use single or double quotes to enclose the produced representation of
the string. Is there a clean way to force that choice to be, under user
control, a particular quote character (either simple or double)?
Thanks in advance. :-)
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list