Jason Tackaberry wrote:
> On Fri, 2007-01-05 at 17:42 +0100, Dirk Meyer wrote:
>> > The problem with this is there's no way to specify "foo_bar-baz"
>> 
>> No, you can have everything. But in a config file foo-bar looks
>> bettwen than foo_bar (IMHO). But you can't access config.foo-bar, so
>> we need this.
>
> But doesn't this mean you can't have a dict key (which you can access as
> an arbitrary string) be specified as foo_bar-baz?  i.e. if from the app
> I do:
>
>    config.somedict['foo_bar-baz'] = 42
>
> Won't it be written to the config file as:
>
>    config.somedict[foo-bar-baz] = 42
>
> ?

It has nothing to do with a dict, it is the group variable name. So
you can't do config.foo_bar-baz, but you can't do it anyway because it
is not valid python code.

> This would be rather confusing when you subsequently go to load in the
> config file and config.somedict['foo_bar-baz'] no longer exists.  Or
> does this change not affect dictionary keys and only config names that
> will eventually be accessed as python variables?  (It looked like it
> would affect dict keys too.)

It should not affect dicts.


Dischi

-- 
I believe no problem is so large or so difficult that it can't be
blamed on somebody else.

Attachment: pgp2or79pFdWL.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to