• Jeremy Maitin-Shepard's avatar
    Add `custom_type_setup` attribute (#3287) · 62c4909c
    Jeremy Maitin-Shepard authored
    * 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.
    62c4909c
classes.rst 45.9 KB