Re: pungi, python and the question: where are the python gurus?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jesse Keating wrote:
On Tue, 02 Oct 2007 14:47:06 +0200
Oliver Falk <oliver@xxxxxxxxxxxxxxx> wrote:

  
OK, that might be the better fix. But doesn't it make sense
ConfigParser also allows int as values? I mean any kind of number
(int, float, complex) could be handled as string...
    

I know not the history of ConfigParser and why it's only strings.  I
suspect it's because ConfigParser's primary usage is to parse config
files, and in a file it may be non-obvious how to mark something as an
int/float rather than a string.  The reason pungi uses ConfigParser is
that prior to using kickstart files we had our own config files.  I'm
not entirely happy with ConfigParser, but it'd be something of an
overhaul to switch to some other config system, and not one I was
willing to make at this point.  Maybe during F9...
  
You can take a look at the config classes in yum (yum/config.py) it let you define different kind of options types.

Tim
-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux