summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/api/messages/catalog.rst1
-rw-r--r--docs/license.rst2
-rw-r--r--docs/numbers.rst19
3 files changed, 20 insertions, 2 deletions
diff --git a/docs/api/messages/catalog.rst b/docs/api/messages/catalog.rst
index 8a905bc..8cb6375 100644
--- a/docs/api/messages/catalog.rst
+++ b/docs/api/messages/catalog.rst
@@ -12,6 +12,7 @@ Catalogs
.. autoclass:: Catalog
:members:
+ :special-members: __iter__
Messages
--------
diff --git a/docs/license.rst b/docs/license.rst
index a619b57..7c93ab4 100644
--- a/docs/license.rst
+++ b/docs/license.rst
@@ -19,7 +19,7 @@ Authors
General License Definitions
---------------------------
-The following section contains the full license texts for Flask and the
+The following section contains the full license texts for Babel and the
documentation.
- "AUTHORS" hereby refers to all the authors listed in the
diff --git a/docs/numbers.rst b/docs/numbers.rst
index df834ea..058d79e 100644
--- a/docs/numbers.rst
+++ b/docs/numbers.rst
@@ -160,4 +160,21 @@ Examples:
...
NumberFormatError: '2,109,998' is not a valid decimal number
-.. note:: Number parsing is not properly implemented yet
+Note: as of version 2.8.0, the ``parse_number`` function has limited
+functionality. It can remove group symbols of certain locales from numeric
+strings, but may behave unexpectedly until its logic handles more encoding
+issues and other special cases.
+
+Examples:
+
+.. code-block:: pycon
+
+ >>> parse_number('1,099', locale='en_US')
+ 1099
+ >>> parse_number('1.099.024', locale='de')
+ 1099024
+ >>> parse_number('123' + u'\xa0' + '4567', locale='ru')
+ 1234567
+ >>> parse_number('123 4567', locale='ru')
+ ...
+ NumberFormatError: '123 4567' is not a valid number