codehz / bun_python

Ported from deno_python
MIT License
30 stars 1 forks source link

Make `Callback` keep reference to `PyObject`, to prevent GC until `destroy()` is called #4

Closed heri16 closed 4 months ago

heri16 commented 4 months ago

Make Callback keep reference to PyObject, to prevent GC until destroy() is called, or until Callback itself is GC-ed.

heri16 commented 4 months ago

Fixes Issue #1

codehz commented 4 months ago

lgtm