esafak opened a new pull request, #2384: URL: https://github.com/apache/fory/pull/2384
## What does this PR do? * Enable correct serialization/deserialization of objects using `__getstate__` and `__setstate__` when Fory's Python serialization falls back to the standard pickle mechanism. * Modify `_registry.py` to allow `PickleSerializer` fallback for `Language.XLANG` when `require_type_registration=False`. * Update `serializer.py` to make `PickleSerializer` inherit from `CrossLanguageCompatibleSerializer`, ensuring `xwrite` and `xread` delegate to `write` and `read`. * Add tests in `test_serializer.py` to verify `__getstate__` and `__setstate__` behavior during Fory's pickle fallback. ## Related issues Completes #2293, #2294 ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/fory/issues/new/choose) describing the need to do so and update the document if necessary. --> - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? -- 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]
