Is there any way to make repr(aString) use double quotes?

Stephen Ferg steve at ferg.org
Tue Apr 8 18:31:25 EDT 2003


def dq(s):
	"""enclose a string in double quotes
	"""
	return '"' + s + '"'

s = "abc"
sInDoubleQuotes = dq(s)




More information about the Python-list mailing list