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
..
2016-04-26 23:48:55 +02:00
2020-10-18 14:31:28 -04:00
2015-10-13 03:16:44 +02:00
2021-07-17 11:50:42 -04:00
2021-07-04 19:58:35 -04:00