Re: Referencing section name by interpolation in ConfigParser

2017-01-27 Thread Hans-Peter Jansen
On Mittwoch, 25. Januar 2017 10:01:56 Peter Otten wrote: > Hans-Peter Jansen wrote: > > I would like to use a interpolated section name, e.g.: > > > > [Section] > > secref: %{section}s/whatever > > > > should result in: > config['Section']['secref'] > > > > 'Section/whatever' > > > > Any i

Re: Referencing section name by interpolation in ConfigParser

2017-01-25 Thread Peter Otten
Hans-Peter Jansen wrote: > I would like to use a interpolated section name, e.g.: > > [Section] > secref: %{section}s/whatever > > should result in: > config['Section']['secref'] > 'Section/whatever' > > Any idea anybody, how to archive this with minimum fuzz? If you can live with the ex

Referencing section name by interpolation in ConfigParser

2017-01-24 Thread Hans-Peter Jansen
Hi, I would like to use a interpolated section name, e.g.: [Section] secref: %{section}s/whatever should result in: >>> config['Section']['secref'] 'Section/whatever' Any idea anybody, how to archive this with minimum fuzz? Thanks, Pete -- https://mail.python.org/mailman/listinfo/python-list