Unverified Commit 62c4909c authored by Jeremy Maitin-Shepard's avatar Jeremy Maitin-Shepard Committed by GitHub
Browse files

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.
parent 409be833
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment