Re: [Python-Dev] PyTuple_Pack with NULL argument

2007-12-17 Thread Guido van Rossum
Yes, a tuple containing NULL should never be exposed to Python code -- it should only ever be a temporary result in C code. The C code should ensure all tuple items are non-NULL before passing the tuple off to Python (or even to its caller, in most cases). --Guido On Dec 17, 2007 1:19 PM, Lisandr

[Python-Dev] PyTuple_Pack with NULL argument

2007-12-17 Thread Lisandro Dalcin
Currently, PyTuple_Pack() does not check for NULL arguments, so it is going to segfault in this case. Is this intended for performance reasons? -- Lisandro Dalcín --- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Ind