summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-08-02 11:01:01 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-08-02 11:01:01 (GMT)
commit9a6e645b9fc6895dcf4251dc7cc237da6d567336 (patch)
tree58995f573f054b82a6a9d6f28a732affd0573928 /Doc
parent8299f3280cf34e03285a3a448c60da9a62463d70 (diff)
downloadcpython-9a6e645b9fc6895dcf4251dc7cc237da6d567336.zip
cpython-9a6e645b9fc6895dcf4251dc7cc237da6d567336.tar.gz
cpython-9a6e645b9fc6895dcf4251dc7cc237da6d567336.tar.bz2
Merged revisions 74281 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74281 | mark.dickinson | 2009-08-02 11:59:36 +0100 (Sun, 02 Aug 2009) | 4 lines Issue #6595: Allow Decimal constructor to accept non-European decimal digits, as recommended by the specification. (Backport of r74279 from py3k.) ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/decimal.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index 4a86913..7cd8952 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -330,6 +330,12 @@ Decimal objects
numeric-value ::= decimal-part [exponent-part] | infinity
numeric-string ::= [sign] numeric-value | [sign] nan
+ If *value* is a unicode string then 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
+ ``u'\uff10'`` through ``u'\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))``