pitrou commented on PR #40565: URL: https://github.com/apache/arrow/pull/40565#issuecomment-2009154063
In your case, the outer variables referenced by `WrapFunc` (`memo_table`, `unique_values`...) are destroyed just after `WrapFunc` is defined and before it is actually called. So calling `WrapFunc` references destroyed objects, which leads to misbehaviour. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
