[Lxml-checkins] r43348 - lxml/trunk/doc

scoder at codespeak.net scoder at codespeak.net
Mon May 14 10:34:21 CEST 2007


Author: scoder
Date: Mon May 14 10:34:21 2007
New Revision: 43348

Modified:
   lxml/trunk/doc/capi.txt
Log:
small fixes

Modified: lxml/trunk/doc/capi.txt
==============================================================================
--- lxml/trunk/doc/capi.txt	(original)
+++ lxml/trunk/doc/capi.txt	Mon May 14 10:34:21 2007
@@ -9,7 +9,7 @@
 The API is described in the file `etreepublic.pxd`_, which is directly
 c-importable by Pyrex modules.
 
-.. _`etreepublic.pxd`: http://codespeak.net/svn/lxml/branch/capi/src/lxml/etreepublic.pxd
+.. _`etreepublic.pxd`: http://codespeak.net/svn/lxml/trunk/src/lxml/etreepublic.pxd
 
 .. contents::
 ..
@@ -23,6 +23,8 @@
 This is the easiest way of extending lxml at the C level.  A Pyrex module
 should start like this::
 
+    # My Pyrex extension
+
     # import the public functions and classes of lxml.etree
     cimport etreepublic as cetree
 
@@ -47,7 +49,8 @@
          def setValue(self, myval):
              self.set("my_attribute", myval)
 
-    etree.setDefaultElementClass(NewElementClass)
+    etree.setElementClassLookup(
+         DefaultElementClassLookup(element=NewElementClass))
 
 
 Writing external modules in C


More information about the lxml-checkins mailing list