[Tutor] Config Files

Karthikesh Raju karthik at james.hut.fi
Wed Jul 7 13:03:14 CEST 2004

Hi All

Thankx Andrei for your suggestion. i have now altered the config files

K = 8

K1 = 2

etc etc and loaded then using configParser module, and unpacked the
dictionaries so now i will have two dictionaries user, userless with
keys K and K1, but the keys are converted to lowercase, which i dont want,
so a key like simulateK becomes simulatek.

Why is this so? How do i solve it?

With regards to the the int problem i used string.atof in a try-except
loop. Is this fine?

With warm regards


Karthikesh Raju,		    email: karthik at james.hut.fi
Researcher,			    http://www.cis.hut.fi/karthik
Helsinki University of Technology,  Tel: +358-9-451 5389
Laboratory of Comp. & Info. Sc.,    Fax: +358-9-451 3277
Department of Computer Sc.,
P.O Box 5400, FIN 02015 HUT,

More information about the Tutor mailing list