[cfe-commits] [PATCH] Add Python bindings to comment AST introspection APIs

Sean Silva silvas at purdue.edu
Thu Dec 20 15:14:52 PST 2012


On Thu, Dec 20, 2012 at 3:06 PM, Ben Gertzfield <bgertzfield at gmail.com> wrote:
> 2) For the methods that return HTML and XML, should they just return
> strings, or should I make the API return parser objects? (It seems like
> introducing a dependency on those modules is probably not the best idea, but
> I'm not sure what the state of the art is in HTML and XML in Python.)

Python has a "batteries included" standard library. Every Python
installation has full access to HTML and XML parsers in the standard
library; there is no "dependency" to be introduced. It might be
worthwhile to use those modules that are in the standard library to
extract the XML data and present a more Pythonic API than just an XML
dump though.

-- Sean Silva



More information about the cfe-commits mailing list