8000 DOC: Fix reference warning for buffer. by liang3zy22 · Pull Request #24331 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: Fix reference warning for buffer. #24331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions doc/source/reference/arrays.dtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,16 @@ Built-in Python types
Several python types are equivalent to a corresponding
array scalar when used to generate a :class:`dtype` object:

================ ===============
:class:`int` :class:`int\_`
:class:`bool` :class:`bool\_`
:class:`float` :class:`float\_`
:class:`complex` :class:`cfloat`
:class:`bytes` :class:`bytes\_`
:class:`str` :class:`str\_`
:class:`buffer` :class:`void`
(all others) :class:`object_`
================ ===============
=================== ===============
:class:`int` :class:`int\_`
:class:`bool` :class:`bool\_`
:class:`float` :class:`float\_`
:class:`complex` :class:`cfloat`
:class:`bytes` :class:`bytes\_`
:class:`str` :class:`str\_`
:class:`memoryview` :class:`void`
(all others) :class:`object_`
=================== ===============

Note that ``str_`` corresponds to UCS4 encoded unicode strings, while
``string_`` is an alias to ``bytes_``. The name ``np.unicode_`` is also
Expand Down
2 changes: 1 addition & 1 deletion doc/source/reference/arrays.interface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ This approach to the interface consists of the object having an

**offset** (optional)
An integer offset into the array data region. This can only be
used when data is ``None`` or returns a :class:`buffer`
used when data is ``None`` or returns a :class:`memoryview`
object.

**Default**: ``0``.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/reference/arrays.ndarray.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ changes made in one :class:`ndarray` may be visible in another. That
is, an ndarray can be a *"view"* to another ndarray, and the data it
is referring to is taken care of by the *"base"* ndarray. ndarrays can
also be views to memory owned by Python :class:`strings <str>` or
objects implementing the :class:`buffer` or :ref:`array
objects implementing the :class:`memoryview` or :ref:`array
<arrays.interface>` interfaces.


Expand Down
0