Hi,

this pull request looks good to me. Any objections to merging it in?

Stefan



-------- Original-Message --------
please consider merging these changes. I am sure there is a lot to improve
especially wrt. the docs, but I think this is very usable already.

Apart from the no_gc_clear decorator, this also changes the tp_clear
implementation to use Py_CLEAR to set the references to NULL.

Greetings, Torsten
You can merge this Pull Request by running:

  git pull https://github.com/Bluehorn/cython master

Or you can view, comment on it, or merge it online at:

  https://github.com/cython/cython/pull/248

-- Commit Summary --

  * Change tp_clear generation to clear to NULL.
  * Add decorator @gc_no_clear to disable tp_clear slot.

-- File Changes --

    M Cython/Compiler/ModuleNode.py (12)
    M Cython/Compiler/Options.py (3)
    M Cython/Compiler/Symtab.py (7)
    M Cython/Compiler/TypeSlots.py (10)
    M docs/src/userguide/extension_types.rst (37)
    A tests/run/clear_to_null.pyx (68)
    A tests/run/gc_no_clear.pyx (42)

-- Patch Links --

https://github.com/cython/cython/pull/248.patch
https://github.com/cython/cython/pull/248.diff

_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to