gh-130664: support '_' (just as ',') in Decimal's formatting (#132155)

This commit is contained in:
Sergey B Kirpichev 2025-04-15 13:38:03 +03:00 committed by GitHub
parent c66ffcf8e3
commit e10fe81cc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View file

@ -6098,7 +6098,7 @@ def _convert_for_comparison(self, other, equality_op=False):
(?P<alt>\#)?
(?P<zeropad>0)?
(?P<minimumwidth>(?!0)\d+)?
(?P<thousands_sep>,)?
(?P<thousands_sep>[,_])?
(?:\.(?P<precision>0|(?!0)\d+))?
(?P<type>[eEfFgGn%])?
\Z