[Python-3000] String formating operations in python 3k
Barry Warsaw
barry at python.org
Tue Apr 4 21:10:24 CEST 2006
On Tue, 2006-04-04 at 10:41 -0500, Ian Bicking wrote:
> A $ prefix would act at parse time, i.e., $"answer: $answer" would be
> equivalent to ("answer: " + str(answer)).
Wouldn't it be equivalent to string.Template("answer: $answer") ? In
any event...
> Though I also agree that $"answer: $answer" introduces a confusing
> number of $'s.
...I agree too! :)
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-3000/attachments/20060404/0a4c8caf/attachment.pgp
More information about the Python-3000
mailing list