Lines Matching refs:interpolation
295 interpolation. This means values can be preprocessed before returning them
298 .. index:: single: % (percent); interpolation in configuration files
317 In the example above, :class:`ConfigParser` with *interpolation* set to
324 With ``interpolation`` set to ``None``, the parser would simply return
328 .. index:: single: $ (dollar); interpolation in configuration files
332 An alternative handler for interpolation which implements a more advanced
333 syntax, used for instance in ``zc.buildout``. Extended interpolation is
336 ``section:`` part is omitted, interpolation defaults to the current section
339 For example, the configuration specified above with basic interpolation,
340 would look like this with extended interpolation:
555 >>> parser = ConfigParser(interpolation=ExtendedInterpolation())
572 ... interpolation not necessary = if # is not at line start
586 >>> print(parser['hashes']['interpolation not necessary'])
631 sections or interpolation purposes is a powerful concept of this library,
641 * *interpolation*, default value: ``configparser.BasicInterpolation``
644 through the *interpolation* argument. ``None`` can be used to turn off
645 interpolation completely, ``ExtendedInterpolation()`` provides a more
647 `dedicated documentation section <#interpolation-of-values>`_.
811 To get interpolation, use :class:`ConfigParser`::
819 # interpolation in a single get operation.
824 # precedence in interpolation.
845 interpolation if an option used is not defined elsewhere. ::
864 …empty_lines_in_values=True, default_section=configparser.DEFAULTSECT, interpolation=BasicInterpola…
888 section holding default values for other sections and interpolation purposes
893 through the *interpolation* argument. ``None`` can be used to turn off
894 interpolation completely, ``ExtendedInterpolation()`` provides a more
896 `dedicated documentation section <#interpolation-of-values>`_.
898 All option names used in interpolation will be passed through the
915 *empty_lines_in_values*, *default_section* and *interpolation* were
1052 the *raw* argument is true. Values for interpolation keys are looked up
1172 The maximum depth for recursive interpolation for :meth:`get` when the *raw*
1173 parameter is false. This is relevant only when the default *interpolation*
1188 interpolation])
1190 Legacy variant of the :class:`ConfigParser`. It has interpolation
1197 the values to be stored internally. If you don't want interpolation, you
1198 can use ``ConfigParser(interpolation=None)``.
1217 functionality (including interpolation and output to files) can only be
1267 interpolation.
1272 Exception raised when string interpolation cannot be completed because the