]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure
authorMark Dickinson <dickinsm@gmail.com>
Wed, 2 Jul 2008 09:37:01 +0000 (09:37 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Wed, 2 Jul 2008 09:37:01 +0000 (09:37 +0000)
commit70c3289085d08d97edbfaa626efc2d2c2ac21859
tree4a60e0d0005acbc8ea36dea5e408aa6d43b8d2a7
parent8bb8fa5dd679d1f4086fac4d3181f0985c14006d
Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure
that the behaviour of Decimal doesn't change if/when re.UNICODE becomes
assumed in Python 3.0.

Also add a check that alternative Unicode digits (e.g. u'\N{FULLWIDTH
DIGIT ONE}') are *not* accepted in a numeric string.
Lib/decimal.py
Lib/test/test_decimal.py