Switching to test on Windows, MSVC complained with the code below.
Note the zero-sized "PyObject* values[0] = {}" being generated...
/* "/home/dalcinl/Devel/mpi4py-dev/src/MPI/Info.pyx":26
*
* @classmethod
* def Create(cls): # <<<<<<<<<<<<<<
* """
* Create a new, empty info object
*/
static PyObject *__pyx_pf_6mpi4py_3MPI_4Info_Create(PyObject
*__pyx_v_cls, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6mpi4py_3MPI_4Info_Create[] = "Info.Create(type
cls)\n\n Create a new, empty info object\n ";
static PyObject *__pyx_pf_6mpi4py_3MPI_4Info_Create(PyObject
*__pyx_v_cls, PyObject *__pyx_args, PyObject *__pyx_kwds) {
struct __pyx_obj_6mpi4py_3MPI_Info *__pyx_v_info = 0;
PyObject *__pyx_r = NULL;
PyObject *__pyx_t_1 = NULL;
int __pyx_t_2;
static PyObject **__pyx_pyargnames[] = {0};
__Pyx_RefNannySetupContext("Create");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[0] = {};
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
This patch fixes the issue, but perhaps I'm just reverting to previous
behavior?
diff -r f6efe60d7a31 Cython/Compiler/Nodes.py
--- a/Cython/Compiler/Nodes.py Fri Dec 04 15:23:23 2009 +0100
+++ b/Cython/Compiler/Nodes.py Fri Dec 04 20:53:43 2009 -0300
@@ -1752,11 +1752,11 @@
arg = self.args[i]
arg.is_generic = 0
if sig.is_self_arg(i) and not self.is_staticmethod:
+ arg.is_self_arg = 1
if self.is_classmethod:
arg.is_type_arg = 1
arg.hdr_type = arg.type = Builtin.type_type
else:
- arg.is_self_arg = 1
arg.hdr_type = arg.type = env.parent_type
arg.needs_conversion = 0
else:
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev