summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-03 18:46:30 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-03 18:51:28 +0200
commitd01eaf7104e96b2fcf373ddfbc80ef4568bd0387 (patch)
tree6fd233f405c06ea97fc2a6289c1eb07e885d202e /docs/ref
parent129f1ac8484d63c2e61a44fb2a18dd17246c1c4d (diff)
[py3] Removed uses of sys.maxint under Python 3.
Also fixed #18706: improved exceptions raised by int_to_base36.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/utils.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index c2f2025bc3..5157c399da 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -504,11 +504,13 @@ escaping HTML.
.. function:: base36_to_int(s)
- Converts a base 36 string to an integer.
+ Converts a base 36 string to an integer. On Python 2 the output is
+ guaranteed to be an :class:`int` and not a :class:`long`.
.. function:: int_to_base36(i)
- Converts a positive integer less than sys.maxint to a base 36 string.
+ Converts a positive integer to a base 36 string. On Python 2 ``i`` must be
+ smaller than :attr:`sys.maxint`.
``django.utils.safestring``
===========================