This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / testing / _private / utils / _assert_valid_refcount

function

numpy.testing._private.utils:_assert_valid_refcount

source: build-install/usr/lib/python3.14/site-packages/numpy/testing/_private/utils.py :1637

Signature

def   _assert_valid_refcount ( op )

Summary

Check that ufuncs don't mishandle refcount of object 1. Used in a few regression tests.

Aliases

  • numpy.testing._assert_valid_refcount