[Python-3000] More PEP 3101 changes incoming
talin at acm.org
Tue Aug 7 03:40:28 CEST 2007
Ron Adam wrote:
> Now here's the problem with all of this. As we add the widths back into
> the format specifications, we are basically saying the idea of a separate
> field width specifier is wrong.
> So maybe it's not really a separate independent thing after all, and it
> just a convenient grouping for readability purposes only.
I'm beginning to suspect that this is indeed the case.
Before we go too much further, let me give out the URLs for the .Net
documentation on these topics, since much of the current design we're
discussing has been inspired by .Net:
I'd suggest some study of these. Although I would warn against adopting
this wholesale, as there are a huge number of features described in
these documents, more than I think we need.
One other URL for people who want to play around with implementing this
stuff is my Python prototype of the original version of the PEP. It has
all the code you need to format floats with decimal precision,
exponents, and so on:
More information about the Python-3000