Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-11 Thread Greg Ewing
Ben Wolfson wrote: You can't have an internal replacement field in this part of the replacement field, so '{' can always safely be assumed to be Just a Brace and not the start of a replacement field, regardless of whether it's doubled, I'm worried that the rules in this area are getting too com

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-11 Thread Terry Reedy
On 6/11/2011 6:32 AM, Petri Lehtinen wrote: Nick Coghlan wrote: [snip] It seems to me that the intent of the pep and the current doc is that field_names should match what one would write in code except that quotes are left off of literal string keys. Which is to say, the brackets [] serve as

Re: [Python-Dev] [Python-checkins] cpython (3.1): onto 3.1.5

2011-06-11 Thread Benjamin Peterson
2011/6/11 Terry Reedy : > >> +What's New in Python 3.1.5? >> +=== >> + >> +*Release date: -XX-XX* >> + >> +Core and Builtins >> +- >> + >> +Library >> +--- >> + >> + > > I presume that only security patches should be added. Indeed. -- Regards, Ben

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-11 Thread Ben Wolfson
On Sat, Jun 11, 2011 at 2:16 AM, Nick Coghlan wrote: > On Sat, Jun 11, 2011 at 7:15 AM, Ben Wolfson wrote: > To summarise (after both the above post and the discussion on the tracker) Thanks for the summary! > > That would leave us with the following set of rules for name fields: > > 1. Numeric

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-11 Thread Petri Lehtinen
Nick Coghlan wrote: [snip] > The rules for name fields would then become: > > 1. Numeric fields start with a digit and are terminated by any > non-numeric character. > > 2. An identifier name field is terminated by any one of: > '}' (terminates the replacement field) > '!' (terminates ide

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-11 Thread Nick Coghlan
On Sat, Jun 11, 2011 at 7:15 AM, Ben Wolfson wrote: [snip very thorough analysis] To summarise (after both the above post and the discussion on the tracker) The current str.format implementation differs from the documentation in two ways: 1. It ignores the presence of an unclosed index field wh

Re: [Python-Dev] Python jails

2011-06-11 Thread Victor Stinner
Le 11/06/2011 02:41, R. David Murray a écrit : I haven't read through your post, but if you don't know about it I suspect that you will be interested in the following: http://code.activestate.com/pypm/pysandbox/ I'm pretty sure Victor will be happy to have someone else interested in this t