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

DecRef is using the wrong name for everything except structs #221

Closed rcoreilly closed 4 years ago

rcoreilly commented 4 years ago

s.Package().Name() is the correct module prefix for this, not g.outname -- I will fix in upcoming PR.

bind/gen_map.go:129:24:         g.pywrap.Printf("_%s.DecRef(self.handle)\n", g.outname)
bind/gen_slice.go:119:24:       g.pywrap.Printf("_%s.DecRef(self.handle)\n", g.outname)
bind/gen_struct.go:94:23:   g.pywrap.Printf("_%s.DecRef(self.handle)\n", s.Package().
bind/gen_type.go:168:23:    g.pywrap.Printf("_%s.DecRef(self.handle)\n", g.outname)