[Lxml-checkins] r49556 - lxml/trunk/src/lxml
scoder at codespeak.net
scoder at codespeak.net
Sat Dec 8 16:06:55 CET 2007
Author: scoder
Date: Sat Dec 8 16:06:55 2007
New Revision: 49556
Modified:
lxml/trunk/src/lxml/lxml.etree.pyx
Log:
Modified: lxml/trunk/src/lxml/lxml.etree.pyx
==============================================================================
--- lxml/trunk/src/lxml/lxml.etree.pyx (original)
+++ lxml/trunk/src/lxml/lxml.etree.pyx Sat Dec 8 16:06:55 2007
@@ -215,6 +215,14 @@
cdef class QName:
"""QName wrapper.
+
+ Pass a tag name by itself or a namespace URI and a tag name to
+ create a qualified name. The ``text`` property holds the
+ qualified name in ``{namespace}tagname`` notation.
+
+ You can pass QName objects wherever a tag name is expected. Also,
+ setting Element text from a QName will resolve the namespace
+ prefix and set a qualified text value.
"""
cdef readonly object text
def __init__(self, text_or_uri, tag=None):
More information about the lxml-checkins
mailing list