We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8746f commit 06eb7f8Copy full SHA for 06eb7f8
include/pybind11/detail/class.h
@@ -441,7 +441,8 @@ extern "C" inline int pybind11_clear(PyObject *self) {
441
/// Give instances of this type a `__dict__` and opt into garbage collection.
442
inline void enable_dynamic_attributes(PyHeapTypeObject *heap_type) {
443
auto type = &heap_type->ht_type;
444
-#if defined(PYPY_VERSION)
+// https://github.com/pybind/pybind11/pull/1494
445
+#if defined(PYPY_VERSION) && (PYPY_VERSION_NUM < 0x06000000)
446
pybind11_fail(std::string(type->tp_name) + ": dynamic attributes are "
447
"currently not supported in "
448
"conjunction with PyPy!");
0 commit comments