Embedded python is not 100% stable
aapost
aapost at idontexist.club
Thu Apr 13 13:54:25 EDT 2023
On 4/13/23 03:40, Guenther Sohler wrote:
>
Attachments are stripped, so they weren't included.
Glancing at the branch and the 2 lines you mentioned.
You have a comment with a link for python 2.3 documentation.
Yet you have python 3.10 code included elsewhere (and openscad itself
requires the modern spec C++17, so I assume your aim is at current versions)
https://docs.python.org/3.10/extending/newtypes.html
is the equivalent doc for that.
I am not experienced in defining PyType objects in C, but notice
syntactical discrepancies, missing "static" on dealloc, use of
typecasted malloc rather than PyType_GenericAlloc()
https://docs.python.org/3.10/c-api/typeobj.html#c.PyTypeObject.tp_alloc
Without digging in deeper and learning more I can't say for certain
whether or not those are issues, but intuitively I assume they would be
and that the implementation needs to more closely mirror the syntactical
flow implementations of modern working examples..
More information about the Python-list
mailing list