Change tp_clear generation to clear to NULL.
authorTorsten Landschoff <torsten.landschoff@dynamore.de>
Thu, 1 Aug 2013 21:37:30 +0000 (23:37 +0200)
committerTorsten Landschoff <torsten.landschoff@dynamore.de>
Thu, 1 Aug 2013 21:37:30 +0000 (23:37 +0200)
commitefbff33790a9fbfe6aa83491c18091018744d750
tree5af370d82c2c052fa24e3925814d6b68ecc5e5d7
parent1af954aec08883fea91855db7d1a0a78f9bb41cf
Change tp_clear generation to clear to NULL.

Better to crash early than to never know that the reference changed to
None. See discussion here:

http://article.gmane.org/gmane.comp.python.cython.devel/14833
Cython/Compiler/ModuleNode.py
tests/run/clear_to_null.pyx [new file with mode: 0644]