pybind11/docs/advanced
Jeremy Maitin-Shepard 62c4909cce
Add custom_type_setup attribute (#3287)
* Fix `pybind11::object::operator=` to be safe if `*this` is accessible from Python

* Add `custom_type_setup` attribute

This allows for custom modifications to the PyHeapTypeObject prior to
calling `PyType_Ready`.  This may be used, for example, to define
`tp_traverse` and `tp_clear` functions.
2021-09-24 12:08:22 -07:00
..
cast Add blacken-docs and pycln pre-commit hooks (#3292) 2021-09-22 15:38:50 -04:00
pycpp Add blacken-docs and pycln pre-commit hooks (#3292) 2021-09-22 15:38:50 -04:00
classes.rst Add custom_type_setup attribute (#3287) 2021-09-24 12:08:22 -07:00
embedding.rst Add blacken-docs and pycln pre-commit hooks (#3292) 2021-09-22 15:38:50 -04:00
exceptions.rst Clone of @virtuald's PR #2112 with minor enhancements. (#3215) 2021-08-23 17:30:01 -07:00
functions.rst Add blacken-docs and pycln pre-commit hooks (#3292) 2021-09-22 15:38:50 -04:00
misc.rst chore: drop support for PyPy < 7.3.1 and clean up old PyPy workarounds (#2456) 2020-10-05 10:43:27 -04:00
smart_ptrs.rst Add blacken-docs and pycln pre-commit hooks (#3292) 2021-09-22 15:38:50 -04:00