summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-06-27 22:35:40 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2019-07-26 11:46:21 -0700
commit29edf11c6ef05215b259abd86f251ebce1a436f7 (patch)
treef16dd82c817c820c85543ebbfb61e5b53268944b /numpy/core/numeric.py
parentab87388a76c0afca4eb1159ab0ed232d502a8378 (diff)
downloadnumpy-29edf11c6ef05215b259abd86f251ebce1a436f7.tar.gz
MAINT: Remove need for intermediate refcount incs in dealloc
This enables allocating the simple iterator on the stack using a borrowed reference to the array. Using this approach during deallocating object arrays (decrefing the elements) avoids changing the reference count of `self` during dealloc, which leads to problems. Just INCREF'ing self is not desirable because it increases the global reference count in debugging mode so that it makes reference count debugging harder.
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions