python-babel
babel
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
Resolve deprecated short unit identifiers through their replacements (#1408) * Resolve deprecated short unit identifiers through their replacements * Simplify tests --------- Co-authored-by: Aarni Koskela <akx@iki.fi>
master
2 days ago
parse_time: handle 12 AM and 12 PM correctly on the 12-hour clock (#1366)
master
2 days ago
fix: preserve fuzzy format_skeleton skeleton name in KeyError (#1275) Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
master
2 days ago
parse_time: handle 12 AM and 12 PM correctly on the 12-hour clock The period handling added a flat +12 offset whenever the input contained pm, which breaks both 12 o'clock cases: >>> parse_time('12:00 PM', locale='en_US') ValueError: hour must be in 0..23, not 24 >>> parse_time('12:30 AM', locale='en_US') datetime.time(12, 30) # midnight parsed as half past noon en_US's own medium time format is 'h:mm:ss a', so parsing noon in the most common locale crashes and midnight silently lands on the wrong side of the day. Convert the 12-hour clock properly: 12 AM is 00:00 and 12 PM is 12:00, only 1-11 AM/PM shift by twelve hours.
simpleqt:sq/r22-parse-time-12h
2 days ago
Respect preformatted strings in compound-unit formatting
nawaaaaaAaar:fix/preformatted-compound-numerator
2 days ago
fix: preserve original skeleton in KeyError when fuzzy format_skeleton finds no match Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
SAY-5:fix/format-skeleton-keyerror-none
2 days ago
Simplify tests
jdotc1:fix/deprecated-short-unit-aliases-20261027
2 days ago
Select the compact pattern from the rounded value (#1301) format_compact_decimal chose the magnitude from the unrounded number and only rounded afterwards, so a value that rounds up into the next magnitude kept the smaller unit: 999999 rendered as "1000K" instead of "1M", and likewise "1000M" for 999999999 and "1000 thousand" in the long format. The CLDR algorithm that _get_compact_format documents selects the pattern from the rounded value, so redo the lookup one magnitude up when rounding carries over. Values that do not carry over are unaffected. Additionally: Unnest _get_compact_format loop --------- Co-authored-by: Aarni Koskela <akx@iki.fi>
master
2 days ago
Latest Branches
CodSpeed Performance Gauge
+1%
parse_time: handle 12 AM and 12 PM correctly on the 12-hour clock
#1366
27 days ago
ade1e52
simpleqt:sq/r22-parse-time-12h
CodSpeed Performance Gauge
0%
Respect preformatted string numerators in compound-unit formatting
#1399
10 days ago
745fc45
nawaaaaaAaar:fix/preformatted-compound-numerator
CodSpeed Performance Gauge
0%
fix: preserve original skeleton in KeyError when fuzzy format_skeleton finds no match
#1275
5 months ago
6dbe0f0
SAY-5:fix/format-skeleton-keyerror-none
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs
×
Advertisement