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 ce1a07e commit 102bb08Copy full SHA for 102bb08
include/pybind11/detail/class.h
@@ -475,11 +475,6 @@ extern "C" inline int pybind11_clear(PyObject *self) {
475
/// Give instances of this type a `__dict__` and opt into garbage collection.
476
inline void enable_dynamic_attributes(PyHeapTypeObject *heap_type) {
477
auto type = &heap_type->ht_type;
478
-#if defined(PYPY_VERSION) && (PYPY_VERSION_NUM < 0x06000000)
479
- pybind11_fail(std::string(type->tp_name) + ": dynamic attributes are "
480
- "currently not supported in "
481
- "conjunction with PyPy!");
482
-#endif
483
type->tp_flags |= Py_TPFLAGS_HAVE_GC;
484
type->tp_dictoffset = type->tp_basicsize; // place dict at the end
485
type->tp_basicsize += (ssize_t)sizeof(PyObject *); // and allocate enough space for it
0 commit comments