Enumerating formatting strings

Steve Holden steve at holdenweb.com
Thu Apr 21 05:33:19 EDT 2005


Michael Spencer wrote:
> Andrew Dalke wrote:
> 
>> I see you assume that only \w+ can fit inside of a %()
>> in a format string.  The actual Python code allows anything
>> up to the balanced closed parens.
>>
> Gah! I guess that torpedoes the regexp approach, then.
> 
> Thanks for looking at this
> 
> Michael
> 
While Andrew may have found the "fatal flaw" in your scheme, it's worth 
pointing out that it works just fine for my original use case.

regards
  Steve
-- 
Steve Holden        +1 703 861 4237  +1 800 494 3119
Holden Web LLC             http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/




More information about the Python-list mailing list