Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Terry Reedy
"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

Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Talin
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". > >>

Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Martin v. Löwis
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

Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Georg Brandl
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

Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Bill Janssen
> 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 _

Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Zachary Pincus
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

Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Aahz
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

[Python-Dev] PEP 3101: Advanced String Formatting

2006-04-29 Thread Talin
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