<DuToitSpies>
Hey everyone, I've started working on Pillow, but ran into an issue trying to find an HPy equivalent for PyModuleInit_HEAD_INIT. Using HPyModuleDef instead of PyModuleDef works fine, but then PyModuleInit_HEAD_INIT doesn't work anymore.
<steve_s>
Do you mean including PyModule_HEAD_INIT? What for is it used?
<antocuni>
cfbolz: I like the new logo!
<cfbolz>
antocuni: 🎉
<DuToitSpies>
steve_s: Sorry, I meant PyModuleDef_HEAD_INIT - the line in question is line 4246 of https://github.com/python-pillow/Pillow/blob/main/src/_imaging.c . As far as I can tell, it is used as a field in creating a struct for defining the Imaging module
<antocuni>
DuToitSpies: that's not needed in HPy
<antocuni>
you just need to define your HPyModuleDef with the required fields
DuToitSpies has quit [Quit: Client closed]
DuToitSpies has joined #hpy
<DuToitSpies>
antocuni: Thanks!
DuToitSpies has quit [Quit: Client closed]
FFY00 has joined #hpy
FFY00 has quit [Read error: Connection reset by peer]