Re: string.Template question

2010-04-05 Thread Peter Otten
Wells Oliver wrote: > Can you use dicts with string.Template? > > e.g. a structure like: > > game = { > 'home': {'team': row['home_team_full'], 'score': row['home_score'], > 'record': '0-0', 'pitcher': { > 'id': home_pitcher.attrib['id'], 'name': > home_pitcher.attrib['last_name'], 'wins': home_

string.Template question

2010-04-05 Thread Wells Oliver
Can you use dicts with string.Template? e.g. a structure like: game = { 'home': {'team': row['home_team_full'], 'score': row['home_score'], 'record': '0-0', 'pitcher': { 'id': home_pitcher.attrib['id'], 'name': home_pitcher.attrib['last_name'], 'wins': hom