31 Mar 19:26
Re: python saveResultToFile
Daniel Veillard <veillard <at> redhat.com>
2002-03-31 17:26:48 GMT
2002-03-31 17:26:48 GMT
On Sun, Mar 31, 2002 at 06:24:30AM -0500, Sam Brauer wrote:
> out = cStringIO.StringIO()
> style.saveResultToFile(out, result)
This gives the following at the wrapper level:
Breakpoint 3, libxslt_xsltSaveResultToFile (self=0x0, args=0x80e65b8)
at libxslt-py.c:1257
warning: Source file is more recent than executable.
1257 PyObject *pyobj_style;
(gdb) n
1259 if (!PyArg_ParseTuple(args, (char *)"OOO:xsltSaveResultToFile", &pyobj_file,
&pyobj_result, &pyobj_style))
(gdb)
1260 return(NULL);
(gdb)
1261 file = (FILE *) PyFile_Get(pyobj_file);
(gdb)
1263 style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
(gdb)
1264
(gdb)
1265 c_retval = xsltSaveResultToFile(file, result, style);
(gdb) p file
$1 = (FILE *) 0x0
(gdb) n
1266 py_retval = libxml_intWrap((int) c_retval);
(gdb) p c_retval
$2 = -1
(Continue reading)
RSS Feed