Skip to content

Commit 6b6486d

Browse files
authored
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. -->
1 parent c7cd352 commit 6b6486d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/pyfory/_fory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Fory:
117117

118118
def __init__(
119119
self,
120-
language=Language.XLANG,
120+
language=Language.PYTHON,
121121
ref_tracking: bool = False,
122122
require_type_registration: bool = True,
123123
):

python/pyfory/_serialization.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ cdef class Fory:
602602

603603
def __init__(
604604
self,
605-
language=Language.XLANG,
605+
language=Language.PYTHON,
606606
ref_tracking: bool = False,
607607
require_type_registration: bool = True,
608608
):

0 commit comments

Comments
 (0)