[Lxml-checkins] r45942 - lxml/trunk/src/lxml
scoder at codespeak.net
scoder at codespeak.net
Fri Aug 24 10:11:48 CEST 2007
Author: scoder
Date: Fri Aug 24 10:11:47 2007
New Revision: 45942
Modified:
lxml/trunk/src/lxml/objectify.pyx
lxml/trunk/src/lxml/pyclasslookup.pyx
Log:
docstring cleanup
Modified: lxml/trunk/src/lxml/objectify.pyx
==============================================================================
--- lxml/trunk/src/lxml/objectify.pyx (original)
+++ lxml/trunk/src/lxml/objectify.pyx Fri Aug 24 10:11:47 2007
@@ -806,7 +806,7 @@
string value. It may be None in which case it is not considered for type
guessing.
- Example:
+ Example::
PyType('int', int, MyIntClass).register()
Note that the order in which types are registered matters. The first
Modified: lxml/trunk/src/lxml/pyclasslookup.pyx
==============================================================================
--- lxml/trunk/src/lxml/pyclasslookup.pyx (original)
+++ lxml/trunk/src/lxml/pyclasslookup.pyx Fri Aug 24 10:11:47 2007
@@ -246,15 +246,15 @@
cdef class PythonElementClassLookup(FallbackElementClassLookup):
"""Element class lookup based on a subclass method.
- To use it, inherit from this class and override the method
+ To use it, inherit from this class and override the lookup method to
+ lookup the element class for a node::
lookup(self, document, node_proxy)
- to lookup the element class for a node. The first argument is the opaque
- document instance that contains the Element. The second arguments is a
- lightweight Element proxy implementation that is only valid during the
- lookup. Do not try to keep a reference to it. Once the lookup is done, the
- proxy will be invalid.
+ The first argument is the opaque document instance that contains the
+ Element. The second arguments is a lightweight Element proxy
+ implementation that is only valid during the lookup. Do not try to keep a
+ reference to it. Once the lookup is done, the proxy will be invalid.
If you return None from this method, the fallback will be called.
"""
More information about the lxml-checkins
mailing list