rogerbinns / apsw

Another Python SQLite wrapper
https://rogerbinns.github.io/apsw/
Other
739 stars 97 forks source link

Py_TPFLAGS_MANAGED_WEAKREF for Python 3.12+ #498

Open rogerbinns opened 12 months ago

rogerbinns commented 12 months ago

Py_TPFLAGS_MANAGED_WEAKREF should be set in Python 3.12+ while earlier versions remain using the older tp_weaklistoffset. It can probably be done via macros.