views:

61

answers:

1

The documentation for ConfigParser in Python talks a lot about the so-called "magical interpolation" feature, but never explains what it actually does. I've tried searching for it, but haven't found any answers.

+2  A: 

bad_subj below would be parsed into 'Notify [failure]'

bad_subj: %(subj)s [failure]
subj: Notify
SilentGhost
Okay thanks. What is so 'magical' about that though? Seems like regular variable substitution. Is it the fact that the variable is defined below the place where it is used?
Eskil