Re: ConfigParser.items sorting

2009-10-28 Thread Dean McClure
On Oct 29, 9:05 am, Jon Clements wrote: > On 28 Oct, 21:55, Dean McClure wrote: > > > > > > > On Oct 28, 4:50 pm, Jon Clements wrote: > > > > On 28 Oct, 06:21, Dean McClure wrote: > > > > > Hi, > > > > > Just wondering how I can get theitems() command fromConfigParserto > > > > not resort all t

Re: ConfigParser.items sorting

2009-10-28 Thread Jon Clements
On 28 Oct, 21:55, Dean McClure wrote: > On Oct 28, 4:50 pm, Jon Clements wrote: > > > > > On 28 Oct, 06:21, Dean McClure wrote: > > > > Hi, > > > > Just wondering how I can get theitems() command fromConfigParserto > > > not resort all the item pairs that it presents. > > > > I am trying to get

Re: ConfigParser.items sorting

2009-10-28 Thread Dean McClure
On Oct 28, 4:50 pm, Jon Clements wrote: > On 28 Oct, 06:21, Dean McClure wrote: > > > > > > > Hi, > > > Just wondering how I can get theitems() command fromConfigParserto > > not resort all the item pairs that it presents. > > > I am trying to get it to read some data in order: > > > [Relay Info]

Re: ConfigParser.items sorting

2009-10-28 Thread Steven D'Aprano
On Tue, 27 Oct 2009 23:21:00 -0700, Dean McClure wrote: > Hi, > > Just wondering how I can get the items() command from ConfigParser to > not resort all the item pairs that it presents. > > I am trying to get it to read some data in order: > > [Relay Info] > relay_name: IPC > relay_current_rang

Re: ConfigParser.items sorting

2009-10-27 Thread Jon Clements
On 28 Oct, 06:21, Dean McClure wrote: > Hi, > > Just wondering how I can get the items() command from ConfigParser to > not resort all the item pairs that it presents. > > I am trying to get it to read some data in order: > > [Relay Info] > relay_name: IPC > relay_current_range: [60, 64, 68, 72, 7

ConfigParser.items sorting

2009-10-27 Thread Dean McClure
Hi, Just wondering how I can get the items() command from ConfigParser to not resort all the item pairs that it presents. I am trying to get it to read some data in order: [Relay Info] relay_name: IPC relay_current_range: [60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116] relay_cu