mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
9d698f7fcc
This fixes #856. Instead of the weakref trick, the internals structure holds an unordered_map from PyObject* to a vector of references. To avoid the cost of the unordered_map lookup for objects that don't have any keep_alive patients, a flag is added to each instance to indicate whether there is anything to do. |
||
---|---|---|
.. | ||
pybind11 |