Naive approach to fix memview incref/decref asymmetry in transpose
authorMatěj Laitl <matej@laitl.cz>
Sat, 30 Mar 2013 16:13:47 +0000 (17:13 +0100)
committerMatěj Laitl <matej@laitl.cz>
Sat, 30 Mar 2013 16:13:47 +0000 (17:13 +0100)
commitf0ca61d4a20002497d8e6216a04087ad43a9274a
tree9831219b7b3db82e7f423e3621c5054e7fb43853
parent3257193a7865c1f45ac2479954be5569f0b8337e
Naive approach to fix memview incref/decref asymmetry in transpose

This patch contains test-case along with a blind patch that fixes the test (but
may have other consequences, someone who actually understands the code must
review it).

Original error was:
Fatal Python error: Acquisition count is 0 (line XYZ)

which was caused by refcount error when memview transposition was used on
extension class memoryview attribute.
Cython/Compiler/ExprNodes.py
tests/memoryview/transpose_refcount.pyx [new file with mode: 0644]