Fun with PythonObjects - Mojo compiler error

This issue was quite a challenge to figure out from within my project’s code, but with persistence I reduced the compiler error down to a minimal repro. Follow the link below for the details in the issue opened today on Github. I do not understand the error message other than ‘something bad happened’. :grinning_face:
Some kind of issue with memory allocation or a memory leak related to PythonObjects?

Error: field 'self.test_agent.name._buffer._len' destroyed out of the middle of a value, preventing the overall value from being destroyed

2 Likes