Greg Ewing wrote:
> Talin wrote:
>
>> A typical example of what I am talking about here is something like a
>> web application server, where you have a "development" mode and a
>> "production" mode. In the development mode, you want to find errors as
>> quickly as possible, so you enable strict
On 2/28/07, Talin <[EMAIL PROTECTED]> wrote:
[SNIP]
> >
> > 5. The "strict mode" activation through a global state on the string object
> > is a bad idea. I would prefer some sort of "flags" argument passed to each
> > function. I would prefer the "strict" mode where exceptions are raised by
> > de
Talin wrote:
> A typical example of what I am talking about here is something like a
> web application server, where you have a "development" mode and a
> "production" mode. In the development mode, you want to find errors as
> quickly as possible, so you enable strict formatting. In production
Hi Talin,
Some more thoughts...
> Here's my primary issue with this: I wanted a way to enable strictness
> on an application-wide level, without having to go and individually
> revise the many (typically hundreds) of individual calls to the string
> formatting function.
>
> A typical example of w
Pete Shinners wrote:
> I've gone over PEP3101 to create an initial unittest for the advanced
> formatting. Based on this intro to the formatting syntax, I thought I'd
> also
> share my thoughts. I've also experimented with this against the python
> prototype of the formatting.
>
> I have commente
Hi Pete,
These look very good. My comments to your comments below,
> 1. The early python implementation does not allow "reusing" an argument
> either by index or by keyword name. The PEP has not defined this behavior. I
> think it is important to be allowed to reuse any of the argument objects
>
I've gone over PEP3101 to create an initial unittest for the advanced
formatting. Based on this intro to the formatting syntax, I thought I'd also
share my thoughts. I've also experimented with this against the python
prototype of the formatting.
I have commented out the tests where that implemen