summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSteven Bethard <steven.bethard@gmail.com>2008-03-17 19:33:11 (GMT)
committerSteven Bethard <steven.bethard@gmail.com>2008-03-17 19:33:11 (GMT)
commit6f778cfb5ba0291ed29c51fbdd6e40760097fd36 (patch)
treef795b09cc8c0e538092ef43448fd4635a02cfa21 /Doc
parentf13572d6e40f2ab52c65ec27c65866daa4a7389e (diff)
downloadcpython-6f778cfb5ba0291ed29c51fbdd6e40760097fd36.zip
cpython-6f778cfb5ba0291ed29c51fbdd6e40760097fd36.tar.gz
cpython-6f778cfb5ba0291ed29c51fbdd6e40760097fd36.tar.bz2
Document unicode.isnumeric() and unicode.isdecimal() (issue2326)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index f14c71b..e967c26 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1082,6 +1082,22 @@ string functions based on regular expressions.
.. versionadded:: 2.2.2
+The following methods are present only on unicode objects:
+
+.. method:: unicode.isnumeric()
+
+ Return ``True`` if there are only numeric characters in S, ``False``
+ otherwise. Numeric characters include digit characters, and all characters
+ that have the Unicode numeric value property, e.g. U+2155,
+ VULGAR FRACTION ONE FIFTH.
+
+.. method:: unicode.isdecimal()
+
+ Return ``True`` if there are only decimal characters in S, ``False``
+ otherwise. Decimal characters include digit characters, and all characters
+ that that can be used to form decimal-radix numbers, e.g. U+0660,
+ ARABIC-INDIC DIGIT ZERO.
+
.. _string-formatting: