mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
gh-130664: support '_' (just as ',') in Decimal's formatting (#132155)
This commit is contained in:
parent
c66ffcf8e3
commit
e10fe81cc6
3 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue