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
{{ message }}
Repository navigation
cformat star asterisk should behave differently when given negative sign #4762
In string formatting, a print-f style format specifier can have its amount and precision formatted by variable value through use of star asterik(%*s).
In cformat_bytes and cformat_string, through try_update_quantity_from_tuple, try_update_quantity_from_element is used to update quantity if possible, but it makes the assumption that its behavior should be the same regardless of the sign value of the given element.
Activity
Fix issue RustPython#4762
Fix RustPython#4762
DimitrisJim commentedon Mar 25, 2023
hah, first time I've heard of the asterisk tbh.
MegasKomnenos commentedon Mar 26, 2023
Same here lol. I wouldn't have known it if there wasn't a failing test that used it, haha.
youknowone commentedon Oct 6, 2026
The originally reported problem no longer reproduces on current main. Closing per the recheck in #8982.
— commented by Grok 4.6