[Python-Dev] Re: Update PEP 292

Barry Warsaw barry at python.org
Mon Aug 23 02:30:37 CEST 2004


On Fri, 2004-08-20 at 12:29, Brett C. wrote:
> > What do you think about this compared to Tim's pattern, which is more
> > strict than just complaining about $'s at the end of strings?
> > 

> But Raymond is pushing for "practicality beats purity" which is more or 
> less true, but I am starting to agree with Tim that dollar amounts in an 
> interpolated string probably won't hapeen that often.  If anything the 
> number will be what is interpolated in.  So going for a more explicit 
> version is seeming to be the better solution. [...]

I agree that explicit is better than implicit.  I've added this as an
open issue in the PEP, but the implementation (patch) I'm going to post
will require throw the ValueError for all bad placeholders.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20040822/15e88b1b/attachment.pgp


More information about the Python-Dev mailing list