Fix a few bugs in the new "cpp_locals" directive implementation (GH-4259)
1) Entry utility_code wasn't being imported unless the entry was visibly used. The utility code is needed for the definition even if unused. I think this is what utility_code_definition is for, but I'm not completely sure. I also had to add some calls to ensure it's used. 2) CppOptionalTempCoercions weren't being moved correctly. Tested by printing from the destructor. 3) cdef-class attributes weren't being created or destroyed correctly. Tested by printing from the destructor
Showing
Please register or sign in to comment