@@ -289,8 +289,8 @@ def isnullobj(ndarray[object] arr):
289289 n = len (arr)
290290 result = np.zeros(n, dtype = np.uint8)
291291 for i from 0 <= i < n:
292- arobj = arr[i]
293- result[i] = arobj is NaT or _checknull(arobj )
292+ val = arr[i]
293+ result[i] = val is NaT or _checknull(val )
294294 return result.view(np.bool_)
295295
296296@ cython.wraparound (False )
@@ -303,10 +303,10 @@ def isnullobj_old(ndarray[object] arr):
303303 n = len (arr)
304304 result = np.zeros(n, dtype = np.uint8)
305305 for i from 0 <= i < n:
306- result[i] = util._checknull_old(arr[i])
306+ val = arr[i]
307+ result[i] = val is NaT or util._checknull_old(val)
307308 return result.view(np.bool_)
308309
309-
310310@ cython.wraparound (False )
311311@ cython.boundscheck (False )
312312def isnullobj2d (ndarray[object , ndim = 2 ] arr):
@@ -323,20 +323,6 @@ def isnullobj2d(ndarray[object, ndim=2] arr):
323323 result[i, j] = 1
324324 return result.view(np.bool_)
325325
326- @ cython.wraparound (False )
327- @ cython.boundscheck (False )
328- def isnullobj_old (ndarray[object] arr ):
329- cdef Py_ssize_t i, n
330- cdef object val
331- cdef ndarray[uint8_t] result
332-
333- n = len (arr)
334- result = np.zeros(n, dtype = np.uint8)
335- for i from 0 <= i < n:
336- result[i] = util._checknull_old(arr[i])
337- return result.view(np.bool_)
338-
339-
340326@ cython.wraparound (False )
341327@ cython.boundscheck (False )
342328def isnullobj2d_old (ndarray[object , ndim = 2 ] arr):
0 commit comments