bpo-14465: Provide simple prett printing for XML and ETree API by mcepl · Pull Request #8933 · python/cpython (original) (raw)
Comparing to the solution suggested in #4016, this should bear no performance penalty when pretty_print=False (which is the default). On the other hand, it is not suitable for processing of large XML data. Then some alternative solution (e.g., lxml module) must be used.