1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-24 00:58:53 +03:00

more work, now able to extend the XPath interpreter with functions written

* python/Makefile.am python/generator.py python/libxml.c
  python/libxml.py: more work, now able to extend the
  XPath interpreter with functions written in python.
Daniel
This commit is contained in:
Daniel Veillard
2002-02-01 17:56:45 +00:00
parent c3e39448e5
commit a7340c830e
5 changed files with 186 additions and 2 deletions

View File

@ -672,6 +672,10 @@ for classname in function_classes.keys():
classes.write(" _libxml.%s(self._o)\n" %
classes_destructors[classname]);
classes.write(" self._o = None\n\n");
classes.write(" def __repr__(self):\n")
format = "%s:%%s" % (classname)
classes.write(" return \"%s\" %% (self.name)\n\n" % (
format))
flist = function_classes[classname]
flist.sort(functionCompare)
oldfile = ""