KEKE046 commented on PR #327:
URL: https://github.com/apache/tvm-ffi/pull/327#issuecomment-3636179580

   No @gemini-code-assist, it's wrong, it creates a `f_locals` reference
   
   <img width="2950" height="279" alt="image" 
src="https://github.com/user-attachments/assets/c57415cd-e24f-4456-b9c5-bce9562e2845";
 />
   
   
   But I come up with another hack to prevent circular reference:
   
   ```py
     # Magic hack to prevent a circular reference
     def create(tb, frame, lineno):
         return types.TracebackType(tb, frame, frame.f_lasti, lineno)
     return create(tb, self._create_frame(filename, lineno, func), lineno)
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to