Why are String Formatted Queries Considered So Magical?

Rami Chowdhury rami.chowdhury at gmail.com
Sat Jul 3 22:43:44 EDT 2010


On Saturday 03 July 2010 19:33:44 Lawrence D'Oliveiro wrote:
> In message <pan.2010.06.29.09.35.18.594000 at nowhere.com>, Nobody wrote:
> > On Tue, 29 Jun 2010 12:30:36 +1200, Lawrence D'Oliveiro wrote:
> >>> Seriously, almost every other kind of library uses a binary API. What
> >>> makes databases so special that they need a string-command based API?
> >> 
> >> HTML is also effectively a string-based API.
> > 
> > HTML is a data format. The sane way to construct or manipulate HTML is
> > via the DOM, not string operations.
> 
> What is this “DOM” of which you speak? I looked here
> <http://docs.python.org/library/>, but can find nothing that sounds like
> that, that is relevant to HTML.
> 

The Document Object Model - I don't think the standard library has an HTML DOM 
module but there's certainly one for XML (and XHTML): 
http://docs.python.org/library/xml.dom.html

----
Rami Chowdhury
"Any sufficiently advanced incompetence is indistinguishable from malice."
-- Grey's Law
+1-408-597-7068 / +44-7875-841-046 / +88-01819-245544



More information about the Python-list mailing list