comparison docs/introduction.rst @ 386:d7dcd76c262a

Add Configuration.getfirstfloatvar_s() to the introduction
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 10 Nov 2021 02:12:37 +0100
parents baedd2031074
children b2c0550d5a44
comparison
equal deleted inserted replaced
385:4beeb291926d 386:d7dcd76c262a
239 (:py:meth:`.Configuration.getintvar_s`, 239 (:py:meth:`.Configuration.getintvar_s`,
240 :py:meth:`.Configuration.getboolvar_s`) 240 :py:meth:`.Configuration.getboolvar_s`)
241 241
242 And with :py:meth:`.Configuration.getfirstvar`, 242 And with :py:meth:`.Configuration.getfirstvar`,
243 :py:meth:`.Configuration.getfirstvar_s`, 243 :py:meth:`.Configuration.getfirstvar_s`,
244 :py:meth:`.Configuration.getfirstintvar_s` and 244 :py:meth:`.Configuration.getfirstintvar_s`,
245 :py:meth:`.Configuration.getfirstboolvar_s` there exist variants that 245 :py:meth:`.Configuration.getfirstboolvar_s` and
246 :py:meth:`.Configuration.getfirstfloatvar_s` there exist variants that
246 accept a *list* of possible variables names and return the first one 247 accept a *list* of possible variables names and return the first one
247 that is found. 248 that is found.
248 249
249 Looking at the example in chapter :ref:`yaml-files` -- when calling 250 Looking at the example in chapter :ref:`yaml-files` -- when calling
250 ``config.getvar_s("tree1.tree2.key4")`` you will get the value 251 ``config.getvar_s("tree1.tree2.key4")`` you will get the value