inheritance needed in program configuration - config module or python oo?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sat Sep 2 13:45:54 CEST 2006


In <1157195428.593487.268960 at 74g2000cwt.googlegroups.com>, metaperl wrote:

> And I need to form an FTP connection URL based on this. But I really
> dont want to write my code such that I explicitly hardcode where the
> ftpserver is coming from. Again, in pure OO it is very simple to call a
> method and have it dispatch to either the current object or it's
> parent, but I am not sure that ConfigObj or any config module allows
> such power.

What about simply merging the two `ConfigObj` instances with the `merge()`
method?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list