diff options
author | Yury V. Zaytsev <yury@shurup.com> | 2013-07-16 17:12:55 +0200 |
---|---|---|
committer | Yury V. Zaytsev <yury@shurup.com> | 2013-08-10 21:28:01 +0200 |
commit | 83a3daf0c6d1d55c10a70bf2a90be954af8d747e (patch) | |
tree | 817d9d0261189839c43b2835bf8d8716327a9d78 /doc | |
parent | 1234688ae809870007b73b4a8816711a60f8e62c (diff) | |
download | numpy-83a3daf0c6d1d55c10a70bf2a90be954af8d747e.tar.gz |
BUG: Document that numpy.int_ doesn't inherit from int on Py3k
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/reference/arrays.scalars.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/source/reference/arrays.scalars.rst b/doc/source/reference/arrays.scalars.rst index 0a0d8045c..f229efb07 100644 --- a/doc/source/reference/arrays.scalars.rst +++ b/doc/source/reference/arrays.scalars.rst @@ -61,14 +61,14 @@ are also provided. The C-like names are associated with character codes, which are shown in the table. Use of the character codes, however, is discouraged. -Five of the scalar types are essentially equivalent to fundamental +Some of the scalar types are essentially equivalent to fundamental Python types and therefore inherit from them as well as from the generic array scalar type: ==================== ==================== Array scalar type Related Python type ==================== ==================== -:class:`int_` :class:`IntType` +:class:`int_` :class:`IntType` (Python 2 only) :class:`float_` :class:`FloatType` :class:`complex_` :class:`ComplexType` :class:`str_` :class:`StringType` @@ -88,6 +88,11 @@ Python Boolean scalar. than Python's default implementation of :class:`bool` as a sub-class of int. +.. warning:: + + The :class:`int_` type does **not** inherit from the + :class:`int` built-in under Python 3, because type :class:`int` is no + longer a fixed-width integer type. .. tip:: The default data type in Numpy is :class:`float_`. |