Re: newbie: datastructure `dictionary' question

2006-09-09 Thread Bruno Desthuilliers
jason a écrit : Just some more suggestions: > def parselog(data): > other = 0 > records = {} > > for line in string.split(data, '\n'): for line in data.split('\n'): > str = line.strip() This will shadow the builtin 'str' type. You could reassign to 'line' instead, or

Re: newbie: datastructure `dictionary' question

2006-09-09 Thread jason
On Sat, 09 Sep 2006 09:00:35 -0700, John Machin wrote: > jason wrote: >> Hello, >> >> I am completely new to python and I have question that I unfortunately >> could not find in the various documentation online. My best guess is >> that the answer should be quitte easy but I have just enterd the

Re: newbie: datastructure `dictionary' question

2006-09-09 Thread John Machin
jason wrote: > Hello, > > I am completely new to python and I have question that I unfortunately > could not find in the various documentation online. My best guess is > that the answer should be quitte easy but I have just enterd the learning > phase so that means a hightend chance for stupidity

Re: newbie: datastructure `dictionary' question

2006-09-09 Thread Diez B. Roggisch
jason schrieb: > Hello, > > I am completely new to python and I have question that I unfortunately > could not find in the various documentation online. My best guess is > that the answer should be quitte easy but I have just enterd the learning > phase so that means a hightend chance for stupidit

newbie: datastructure `dictionary' question

2006-09-09 Thread jason
Hello, I am completely new to python and I have question that I unfortunately could not find in the various documentation online. My best guess is that the answer should be quitte easy but I have just enterd the learning phase so that means a hightend chance for stupidity and mistakes on my part.