Ubospica commented on PR #643:
URL: https://github.com/apache/tvm-ffi/pull/643#issuecomment-4782711560

   Updated the pickle semantics in a030c1f per requested behavior:
   
   - `pickle.loads(pickle.dumps(tvm_ffi.core.String(...)))` now returns raw 
Python `str`.
   - `pickle.loads(pickle.dumps(tvm_ffi.core.Bytes(...)))` now returns raw 
Python `bytes`.
   - Tests now assert exact native types for both directly constructed values 
and cached FFI-returned values.
   
   This intentionally drops FFI wrapper type/subclass state across pickle, 
matching the desired raw Python payload behavior.


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