segfault on type(obj), __class__ attribute missing #68

Closed
opened 2024-04-07 19:29:15 +00:00 by john · 0 comments
Owner

Issue time tracking - see my thread here https://discuss.python.org/t/instantiating-python-objects-from-c-segfault-on-type-obj-class-attribute-missing/50432

Pretty perplexing - it seems connected to type objects not being usable interchangeably with the interpreter's final versions. The fix is to import the completed module and fetch type objects from that rather than using the mcrfpydef namespace variables.

solved by a19781b56a

As a small bonus, it means the mcrfpydef namespace isn't necessary for C++ users of the Python types: just use McRFPy_API::mcrf_module as the resource for all access.

Issue time tracking - see my thread here https://discuss.python.org/t/instantiating-python-objects-from-c-segfault-on-type-obj-class-attribute-missing/50432 Pretty perplexing - it seems connected to type objects not being usable interchangeably with the interpreter's final versions. The fix is to import the completed module and fetch type objects from that rather than using the `mcrfpydef` namespace variables. solved by a19781b56a87b68309e63c88e4eb68d22523267d As a small bonus, it means the mcrfpydef namespace isn't necessary for C++ users of the Python types: just use `McRFPy_API::mcrf_module` as the resource for all access.
john added this to the All Datatypes Behaving milestone 2024-04-07 19:29:15 +00:00
john added the
Bugfix
label 2024-04-07 19:29:15 +00:00
john added this to the The Datatype Overhaul project 2024-04-07 19:29:15 +00:00
john added spent time 2024-04-07 19:29:38 +00:00
2 hours 30 minutes
john closed this issue 2024-04-08 02:53:14 +00:00
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Total Time Spent: 2 hours 30 minutes
john
2 hours 30 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#68
No description provided.