changeset 64:bd93ebba58ba

QName - Fix documentation
author Bastian Blank <bblank@thinkmo.de>
date Mon, 03 May 2010 18:38:10 +0200
parents 354ac088cd8d
children d3fcc3556413
files emeraldtree/tree.py
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/emeraldtree/tree.py	Mon May 03 18:30:37 2010 +0200
+++ b/emeraldtree/tree.py	Mon May 03 18:38:10 2010 +0200
@@ -434,13 +434,16 @@
 
 PI = ProcessingInstruction
 
-##
-# QName wrapper.  This can be used to wrap a QName attribute value, in
-# order to get proper namespace handling on output.
-#
-# @return An opaque object, representing the QName.
+class QName(unicode):
+    """
+    QName wrapper.  This can be used to wrap a QName attribute value, in
+    order to get proper namespace handling on output.
 
-class QName(unicode):
+    @ivar name: local part of the QName
+    @type name: unicode
+    @ivar uri: URI part of the QName
+    @type uri: unicode
+    """
     __slots__ = 'name', 'uri'
 
     def __new__(cls, name, uri=None):