Is there any way to configure PyYAML so that I can get the line number associated with a given node? When procesing an input file, for example a configuration file, and I encounter a semantic error I would like to report what line number it is on.
I don't see anything immediately obvious in the docs, but there is this Mark
thing which seems to relate to line numbers.