On Thu, Dec 20, 2012 at 3:06 PM, Ben Gertzfield <[email protected]> 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 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
