|
From: Michael F. <fuz...@vo...> - 2007-09-17 19:41:40
|
Pettit, Keith (SAIC) wrote: > > Is there a way to set items to be case insensitive? Would be nice to > make it so the following are all the same: > > Test1 = "fooo" > test1 = "fooo" > TeSt1 = "fooo" > > Right now I'm taking the manual approch and doing a value.lower() type > of thing with the dict items but it would be nicer if that was a > option inside of configobj itself. > Hehe :-) The Python world tends to be sensitive about case sensitivity... The last version of ConfigObj (version 3) had case insensitivity, but it wasn't a feature much used or liked. As with other feature requests, I'm afraid it is a case of 'patches welcomed'. This would complicate the parser *and* key fetching / setting (i.e. just about everything). If it could be done cleanly *I* wouldn't be particularly opposed to it though (others may have more to say). Michael http://www.manning.com/foord > Thanks, > > Keith > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > |