On 8/16/07, Eric Smith <[EMAIL PROTECTED]> wrote:
> Talin wrote:
> > Alex Holkner wrote:
> >> What is the behaviour of whitespace in a format specifier?  e.g.
> >> how much of the following is valid?
> >>
> >>       "{  foo . name  : 20s }".format(foo=open('bar'))
> >
> > Eric, it's your call :)
>
> I'm okay with whitespace before the colon (or !, as the case may be).
> After the colon, I'd say it's significant and can't be automatically
> removed, because a particular formatter might care (for example, "%Y %M
> %D" for dates).
>
> Currently the code doesn't allow whitespace before the colon.  I can add
> this if time permits, once everything else is implemented.

YAGNI.

-- 
Adam Olsen, aka Rhamphoryncus
_______________________________________________
Python-3000 mailing list
[email protected]
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