go-python / gopy

gopy generates a CPython extension module from a go package.
BSD 3-Clause "New" or "Revised" License
2.05k stars 113 forks source link

Fix `handleFromPtr` missing Reference in Maps #350

Closed EvanOman closed 7 months ago

EvanOman commented 7 months ago

This patch fixes a panic I was encountering when using a map whose value was a non-value-type like another Map, Struct, Slice, etc.

Related:

This fix makes gopy useable for me but I have not added new tests (yet)

rcoreilly commented 7 months ago

Thanks for the fix and review. Looks sensible to me.