提交 e9619747 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Update documentation, fixes gh-109.

上级 65079080
...@@ -19,11 +19,9 @@ def _asarray(a, dtype, order=None): ...@@ -19,11 +19,9 @@ def _asarray(a, dtype, order=None):
data type to the user-provided type. For more information see ticket data type to the user-provided type. For more information see ticket
http://projects.scipy.org/numpy/ticket/870. http://projects.scipy.org/numpy/ticket/870.
Currently, this issue has only been causing trouble when the target In that case, we check that both dtype have the same string
data type is 'int32' or 'int64', on some computers. As a result, we description (byte order, basic type, and number of bytes), and
silently fix it only in this situation: if a type mismatch is detected return a view with the desired dtype.
with another data type, an exception is raised (if that happens, then this
function may need to be modified to also handle this other data type).
This function's name starts with a '_' to indicate that it is meant to be This function's name starts with a '_' to indicate that it is meant to be
used internally. It is imported so as to be available directly through used internally. It is imported so as to be available directly through
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论