[Python-checkins] r61453 - python/trunk/Doc/library/stdtypes.rst
steven.bethard
python-checkins at python.org
Mon Mar 17 20:33:11 CET 2008
Author: steven.bethard
Date: Mon Mar 17 20:33:11 2008
New Revision: 61453
Modified:
python/trunk/Doc/library/stdtypes.rst
Log:
Document unicode.isnumeric() and unicode.isdecimal() (issue2326)
Modified: python/trunk/Doc/library/stdtypes.rst
==============================================================================
--- python/trunk/Doc/library/stdtypes.rst (original)
+++ python/trunk/Doc/library/stdtypes.rst Mon Mar 17 20:33:11 2008
@@ -1082,6 +1082,22 @@
.. 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:
More information about the Python-checkins
mailing list