You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See #4609 to check related test and place to edit.
I marked it as good first issue because it is not deeply coupled to RustPython core.
But without knowledge of locale and number formatting, it will not be very easy.
FormatSpec::format_int have to take locale information from somewhere out of the format, which can be used for n format. Because FormatSpec or rustpython-format is not expected to know about platform-specific locale handling, there must be.. something to do it.
Because many things are changed, I don't think this is a good first issue anymore.
Since everybody has different view for problems, sharing everything about the issue is not easy. Please share me any blocking issues what makes you stuck or not to dive in coding. I'll try to catch what's missing for you.
format(1234567, "n") and format(1234.5, "n") match the active LC_NUMERIC grouping (verified for en_US.UTF-8 and de_DE.UTF-8). The related tests in Lib/test/test_types.py (test_int__format__locale, test_float__format__locale) are unmarked.
Activity
deepakkrsoni commentedon Sep 7, 2024
Hey i would like to contriubute to this issue, can you send me more details regarding the issue, and help me a bit to initiate with the issue ?
youknowone commentedon Sep 8, 2024
@glitchxxx0 Hi! RustPython codebase is changed a lot since #4609 is written.
Linux machine is recommended to run tests.
FormatSpec::format_inthave to take locale information from somewhere out of the format, which can be used fornformat. BecauseFormatSpecorrustpython-formatis not expected to know about platform-specific locale handling, there must be.. something to do it.Because many things are changed, I don't think this is a good first issue anymore.
Since everybody has different view for problems, sharing everything about the issue is not easy. Please share me any blocking issues what makes you stuck or not to dive in coding. I'll try to catch what's missing for you.
Thank you for visiting!
youknowone commentedon Oct 7, 2026
Locale-aware format spec
nis implemented.format(1234567, "n")andformat(1234.5, "n")match the activeLC_NUMERICgrouping (verified foren_US.UTF-8andde_DE.UTF-8). The related tests inLib/test/test_types.py(test_int__format__locale,test_float__format__locale) are unmarked.Closing as resolved. Same work as #5181.
— commented by Grok 4.6