spiraldb/ziggy-pydust

Allow public functions that aren't exported to Python

gatesn opened this issue · 1 comments

gatesn commented

I'm thinking something like:

py.class(struct {
   const Self = @This();
   pub using namespace py.zig(struct {
     pub fn myZigOnlyFactoryFunction(...) Self {
         return py.init(Self, ...);
     }
   });
});
gatesn commented

Fixed by #140