Barry Warsaw wrote:

> I don't much like the $"" prefix

This was discussed during the last round of formatting
wars, and the conclusion was that having $ both
inside and outside the string would be too visually
confusing.

> I don't see a good
> way to marry the rich coercion of %-substitution with the simplicity of
> $-substition.

If I were designing a formatting system from scratch,
I think I'd separate the issue of formatting numbers into
strings from the issue of inserting strings into other
strings. So instead of

   "Answer no. %5d is %8.3f" % (n, x)

you would say something like

   subst("Answer no. {1} is {2}", format(i, 'd', 5), format(x, 'f', 8, 3))

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,          | Carpe post meridiam!                 |
Christchurch, New Zealand          | (I'm not a morning person.)          |
[EMAIL PROTECTED]          +--------------------------------------+
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to