Skip to content

Commit fe22f1e

Browse files
committed
add sys.int_info new fields
1 parent 89bb079 commit fe22f1e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vm/src/stdlib/sys.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,13 +814,17 @@ mod sys {
814814
pub(super) struct PyIntInfo {
815815
bits_per_digit: usize,
816816
sizeof_digit: usize,
817+
default_max_str_digits: usize,
818+
str_digits_check_threshold: usize,
817819
}
818820

819821
#[pyclass(with(PyStructSequence))]
820822
impl PyIntInfo {
821823
const INFO: Self = PyIntInfo {
822824
bits_per_digit: 30, //?
823825
sizeof_digit: std::mem::size_of::<u32>(),
826+
default_max_str_digits: 4300,
827+
str_digits_check_threshold: 640,
824828
};
825829
}
826830

0 commit comments

Comments
 (0)