[Python-3000] PEP 3101 Updated

Adam Olsen rhamph at gmail.com
Thu Aug 16 18:48:12 CEST 2007


On 8/16/07, Eric Smith <eric+python-dev at trueblade.com> 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


More information about the Python-3000 mailing list