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
2010-07-05 15:04:45
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
2010-07-06 06:52:38