[sorry if this is duplicated, I'm having mailer problems] > > Also, the method seems rather complicated for doing a simple thing. The > > only thing I really want is a way to refer to an _New or _Convert method > > from Python code. > > I believe the attached code implements your requirements. Yes, this looks very much like what I had in mind, except that you demonstrate how to store and retrieve a C structure in the type's tp_dict. Nice intro into PyCObject! Thanks, Thomas
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4