Sitelet https://github.com/RustPython/RustPython/issues/5139
Skip to content

sys.flags.int_max_str_digits is not -1 #5139

Description

@youknowone

Summary

sys.flags.int_max_str_digits now returns sys.get_int_max_str_digits().

Introduced from https://github.com/RustPython/RustPython/pull/5127/files#diff-128fff16ea63b541718887f5c714e0c1a357414fe1146b4893ef699e8853e3b0R953

Related RustPython code is vm/src/stdlib.sys.rs Flags::int_max_str_digits.

Not sure yet if we need to change the value of Settings or sys::Flags.

Activity

  1. itsankitkp commented on Jan 1, 2024

    @itsankitkp
    Contributor

    Is this fixed now?
    in rustpython (317f449)
    sys.flags.int_max_str_digits returns -1
    sys.get_int_max_str_digits() returns 4300
    in cpython 3.11.6
    same results as above.

    Also, worked fine with -X int_max_str_digits flag

  2. fanninpm commented on Jan 3, 2024

    @fanninpm
    Contributor

    in cpython 3.11.6

    Have you tried CPython 3.12?

  3. itsankitkp commented on Jan 5, 2024

    @itsankitkp
    Contributor

    in cpython 3.11.6

    Have you tried CPython 3.12?

    Tried latest cpython (3.13 dev version)
    both sys.flags.int_max_str_digits and sys.get_int_max_str_digits() returns 4300
    its coming from here: python/cpython#96499

  4. added a commit that references this issue on Jun 24, 2024
    d3db469
  5. added a commit that references this issue on Jun 27, 2024
    e142d65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions