[XML-SIG] Ugh! Why are DOM access methods spelled with a leading '_'?
Fri, 23 Jun 2000 14:06:15 -0400
Traditionally, Python attributes (including methods) with
names starting with '_' were treated as private.
Why oh why then does the Python DOM implementation use
method names beginning with '_'s in the public API (for
getting attributes), as in '_get_nodeType'? Why not
'get_nodeType' or 'getNodeType'? Is the intent that these
functions shouldn't be called by Python code?
Is there are description somewhere of the Python DOM mapping,
other than the DOM sources?
Jim Fulton mailto:firstname.lastname@example.org Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for