summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-08-02 10:14:23 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-08-02 10:14:23 (GMT)
commit345adc43a37cf4640a58cd37df8eaf12f7e55dac (patch)
tree73f2f2382c799ac40da6d1007da9f904c2b27b3b /Doc
parent642d96a6476199840502a1e98d4902f7f4d47e78 (diff)
downloadcpython-345adc43a37cf4640a58cd37df8eaf12f7e55dac.zip
cpython-345adc43a37cf4640a58cd37df8eaf12f7e55dac.tar.gz
cpython-345adc43a37cf4640a58cd37df8eaf12f7e55dac.tar.bz2
Issue #6595: Allow Decimal constructor to accept non-European decimal digits, as recommended by the specification.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/decimal.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index f3b1ae4..c1c8482 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -324,6 +324,11 @@ Decimal objects
numeric-value ::= decimal-part [exponent-part] | infinity
numeric-string ::= [sign] numeric-value | [sign] nan
+ Other Unicode decimal digits are also permitted where ``digit``
+ appears above. These include decimal digits from various other
+ alphabets (for example, Arabic-Indic and Devanāgarī digits) along
+ with the fullwidth digits ``'\uff10'`` through ``'\uff19'``.
+
If *value* is a :class:`tuple`, it should have three components, a sign
(:const:`0` for positive or :const:`1` for negative), a :class:`tuple` of
digits, and an integer exponent. For example, ``Decimal((0, (1, 4, 1, 4), -3))``