Re: Parsing a dictionary from a format string

2011-06-20 Thread Tim Johnson
* Tim Johnson [110620 13:00]: > > I think later today, I will run some time tests using the `re' > module as well as your function and the one above. OK: Functions follow: def grabBetween(src,begin,end): """Grabs sections of text between `begin' and `end' and returns a list of 0 or more sect

Re: Parsing a dictionary from a format string

2011-06-20 Thread Tim Johnson
* Hans Mulder [110620 12:15]: > On 20/06/11 20:14:46, Tim Johnson wrote: > >Currently using python 2.6, but am serving some systems that have > >older versions of python (no earlier than. > >Question 1: > > With what version of python was str.format() first implemented? Duh! > It might be a ma

Re: Parsing a dictionary from a format string

2011-06-20 Thread Hans Mulder
On 20/06/11 20:14:46, Tim Johnson wrote: Currently using python 2.6, but am serving some systems that have older versions of python (no earlier than. Question 1: With what version of python was str.format() first implemented? That was 2.6, according to the online docs. Take a look at the do

Re: Parsing a dictionary from a format string

2011-06-20 Thread Tim Johnson
* Tim Johnson [110620 10:28]: > Currently using python 2.6, but am serving some systems that have > older versions of python (no earlier than. > Question 1: > With what version of python was str.format() first implemented? > Question 2: > Given the following string: > S = 'Coordinates: {l

Re: Parsing a dictionary from a format string

2011-06-20 Thread Ian Kelly
On Mon, Jun 20, 2011 at 12:14 PM, Tim Johnson wrote: > Currently using python 2.6, but am serving some systems that have > older versions of python (no earlier than. > Question 1: >  With what version of python was str.format() first implemented? 2.6 > Question 2: >  Given the following string:

Parsing a dictionary from a format string

2011-06-20 Thread Tim Johnson
Currently using python 2.6, but am serving some systems that have older versions of python (no earlier than. Question 1: With what version of python was str.format() first implemented? Question 2: Given the following string: S = 'Coordinates: {latitude}, {longitude}' Is there a python li