"Talin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Compound names are a sequence of simple names seperated by
separated
> The string and unicode classes will have a class method called
> 'cformat' that does all the actual work of formatting; The
> format() met
Zachary Pincus wrote:
> I'm not sure about introducing a special syntax for accessing
> dictionary entries, array elements and/or object attributes *within a
> string formatter*... much less an overloaded one that differs from how
> these elements are accessed in "regular python".
>
>>
Aahz wrote:
> First of all, I recommend that you post this to comp.lang.python. This
> is the kind of PEP where wide community involvement is essential to
> success; be prepared for massive revision.
Actually, *all* PEPs should be posted to c.l.p at some point; the PEP
author is responsible for c
Zachary Pincus wrote:
> I'm not sure about introducing a special syntax for accessing
> dictionary entries, array elements and/or object attributes *within a
> string formatter*... much less an overloaded one that differs from
> how these elements are accessed in "regular python".
Yes, I als
> For most built-in types, the conversion specifiers will be the
> same or similar to the existing conversion specifiers used with
> the '%' operator. Thus, instead of '%02.2x", you will say
> '{0:2.2x}'.
Don't you mean, "{0:02.2x}"?
Bill
_
I'm not sure about introducing a special syntax for accessing
dictionary entries, array elements and/or object attributes *within a
string formatter*... much less an overloaded one that differs from
how these elements are accessed in "regular python".
> Compound names are a sequence of
First of all, I recommend that you post this to comp.lang.python. This
is the kind of PEP where wide community involvement is essential to
success; be prepared for massive revision. (My point about massive
revision would be true regardless of how much consensus has been reached
on python-dev -- P
PEP: 3101
Title: Advanced String Formatting
Version: $Revision$
Last-Modified: $Date$
Author: Talin
Status: Draft
Type: Standards
Content-Type: text/plain
Created: 16-Apr-2006
Python-Version: 3.0
Post-History:
Abstract
This PEP proposes a new system for built-in string formatting
oper