This is an automated email from the ASF dual-hosted git repository.
pandalee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git
The following commit(s) were added to refs/heads/main by this push:
new 6b6486d4e feat(python): set default languge to python for pyfory
(#2490)
6b6486d4e is described below
commit 6b6486d4eece32353a0426de8ad225bd8136f069
Author: Shawn Yang <[email protected]>
AuthorDate: Tue Aug 19 18:56:00 2025 +0800
feat(python): set default languge to python for pyfory (#2490)
<!--
**Thanks for contributing to Fory.**
**If this is your first time opening a PR on fory, you can refer to
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).**
Contribution Checklist
- The **Apache Fory** community has requirements on the naming of pr
titles. You can also find instructions in
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).
- Fory has a strong focus on performance. If the PR you submit will have
an impact on performance, please benchmark it first and provide the
benchmark result here.
-->
## What does this PR do?
<!-- Describe the purpose of this PR. -->
## Related issues
<!--
Is there any related issue? Please attach here.
- #xxxx0
- #xxxx1
- #xxxx2
-->
## 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?
## Benchmark
<!--
When the PR has an impact on performance (if you don't know whether the
PR will have an impact on performance, you can submit the PR first, and
if it will have impact on performance, the code reviewer will explain
it), be sure to attach a benchmark data here.
-->
---
python/pyfory/_fory.py | 2 +-
python/pyfory/_serialization.pyx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/pyfory/_fory.py b/python/pyfory/_fory.py
index c78e03746..35ab78d36 100644
--- a/python/pyfory/_fory.py
+++ b/python/pyfory/_fory.py
@@ -117,7 +117,7 @@ class Fory:
def __init__(
self,
- language=Language.XLANG,
+ language=Language.PYTHON,
ref_tracking: bool = False,
require_type_registration: bool = True,
):
diff --git a/python/pyfory/_serialization.pyx b/python/pyfory/_serialization.pyx
index 156693bdc..c61452400 100644
--- a/python/pyfory/_serialization.pyx
+++ b/python/pyfory/_serialization.pyx
@@ -602,7 +602,7 @@ cdef class Fory:
def __init__(
self,
- language=Language.XLANG,
+ language=Language.PYTHON,
ref_tracking: bool = False,
require_type_registration: bool = True,
):
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]