[Python-Dev] PyExc_UnicodeDecodeError (original) (raw)
Thomas Heller theller at python.net
Wed Sep 15 17:27:24 CEST 2004
- Previous message: [Python-Dev] Trying to extract documentation from the CVS
- Next message: [Python-Dev] PyExc_UnicodeDecodeError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can anyone explain why calling this code in a C extension
static PyObject * test(PyObject *self, PyObject *arg) { PyErr_SetString(PyExc_UnicodeDecodeError, "blah blah"); return NULL; }
PyMethodDef module_methods[] = { {"test", test, METH_NOARGS}, {NULL, NULL} };
does this (same in 2.3.4, and 2.4 current CVS):
from somewhere import test test() Traceback (most recent call last): File "", line 1, in ? TypeError: function takes exactly 5 arguments (1 given)
Thomas
- Previous message: [Python-Dev] Trying to extract documentation from the CVS
- Next message: [Python-Dev] PyExc_UnicodeDecodeError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]