diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-08-02 10:16:33 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-08-02 10:16:33 (GMT) |
commit | 8d238293cd76e019f8b37dcbd62d22b7852c4774 (patch) | |
tree | 89a1a15e5e6e13a81301e805719f7dece31867e0 /Doc | |
parent | e634d873155580cac61bbc809a3fdc54c106501e (diff) | |
download | cpython-8d238293cd76e019f8b37dcbd62d22b7852c4774.zip cpython-8d238293cd76e019f8b37dcbd62d22b7852c4774.tar.gz cpython-8d238293cd76e019f8b37dcbd62d22b7852c4774.tar.bz2 |
Merged revisions 74279 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k
........
r74279 | mark.dickinson | 2009-08-02 11:14:23 +0100 (Sun, 02 Aug 2009) | 1 line
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.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 4eba768..7e14486 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))`` |