[Numpy-discussion] Possible ref.count bug in changeset #2422

David M. Cooke cookedm at physics.mcmaster.ca
Wed Apr 26 17:20:05 CDT 2006


Pearu Peterson <pearu at scipy.org> writes:

> Hi,
>
> Shouldn't result be Py_INCRE'ted when it is equal to Py_NotImplemented
> and returned from array_richcompare?

Theoretically, yes, but since the case statement "should" cover all
cases, it doesn't matter. Bad code style though on my part; I've added
a default: case instead.

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca




More information about the Numpy-discussion mailing list