| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
a partial mitigation of #12759.
see also https://nvd.nist.gov/vuln/detail/CVE-2019-6446
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
Mostly indentation changes
Fixes gh-13200
|
| |/
| |
| |
| |
| |
| | |
As a general rule, _every_ use of `.descr` is broken.
Fixes #13297
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The pickle module was being imported from numpy.core.numeric. It was
defined there in order to use pickle5 when available in Python3 and
cpickle in Python2. The numpy.compat module seems a better place for
that.
|
| |
| |
| |
| |
| |
| | |
Load uses pickle under the hood for object arrays, this is made
more visible in the documentation using a warning.
See also gh-12759
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
* ported the refguide_check module from SciPy for usage
in NumPy docstring execution/ verification; added the
refguide_check run to Azure Mac OS CI
* adjusted NumPy docstrings such that refguide_check passes
|
| |
| |
| |
| | |
This only affects arrays with `dtype([])`, but also follows the recommended way to check for structured arrays in our docs
|
|/
|
|
| |
Previously passing `dtype=[], names=['a']` would append an extra field, even though `dtype=['a'], names=['b', 'c']` does not.
|
| |
|
|
|
|
| |
This double negative is confusing to me.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes GH-12271
Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to
``'numpy'``, or appears in an explicit whitelist of undocumented functions and
exported bulitins. These should eventually be documented or removed.
I also identified a handful of functions for which I had accidentally not setup
dispatch for with ``__array_function__`` before, because they were listed under
"ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in
trusting code comments :).
|
|\
| |
| | |
ENH: Add support for third-party path-like objects by backporting os.fspath
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ENH: __array_function__ support for np.lib, part 2
xref GH12028
np.lib.npyio through np.lib.ufunclike
* Fix failures in numpy/core/tests/test_overrides.py
* CLN: handle depreaction in dispatchers for np.lib.ufunclike
* CLN: fewer dispatchers in lib.twodim_base
* CLN: fewer dispatchers in lib.shape_base
* CLN: more dispatcher consolidation
* BUG: fix test failure
* Use all method instead of function in assert_equal
* DOC: indicate n is array_like in scimath.logn
* MAINT: updates per review
* MAINT: more conservative changes in assert_array_equal
* MAINT: add back in comment
* MAINT: casting tweaks in assert_array_equal
* MAINT: fixes and tests for assert_array_equal on subclasses
|
|
|
|
|
|
|
|
| |
All imports of pickle from numpy modules are now done this way:
>>> from numpy.core.numeric import pickle
Also, some loops on protocol numbers are added over pickle tests that
were not caught from #12090
|
| |
|
|\
| |
| | |
ENH: maximum lines of content to be read from numpy.loadtxt
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
argument, or the file is an invalid zip
|
|/ |
|
|
|
|
| |
Fixes #9989
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fixed doc typo
* fixed lib typos
* fixed lapack_lite typos
* Revert "fixed lapack_lite typos"
This reverts commit e7dada860cb73af190234402508ab79965ecd079.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
Fixes gh-10780
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* TST: skip refcount-requiring tests if sys.refcount is missing
* ENH: io: add refcheck=False to a safe .resize() call
The array is allocated immediately above, and the resize always succeeds
so it is not necessary to check it. Fixes Pypy compatibility.
* TST: remove unused code
* TST: factor skipif(not HAS_REFCOUNT) into a separate decorator
|
| |\
| | |
| | | |
BUG: fromregex: asbytes called on regexp objects
|
| | |
| | |
| | |
| | |
| | |
| | | |
When calling fromregex() with a binary stream and a regular expression
object, asbytes() was called on the regexp object, resulting in an
incorrect regular expression being compiled and used.
|
| | |
| | |
| | |
| | | |
Fixes #10620
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
This is potentially a breaking change for python 3, because the Mapping protocol changed between python 2 and python 3 - `items()` and `keys()` now return views, not lists.
In practice, any user running `2to3` should have found this fixed itself automatically.
Also fixes dir(np.lib.npyio.BagObj(dict(a=1))) on python 3.
Fixes gh-1723
|
|\ \
| | |
| | | |
BUG: Resize bytes_ columns in genfromtxt
|
| | |
| | |
| | |
| | | |
Fixes gh-10394, due to regression in gh-10054
|
| |/
|/|
| |
| |
| |
| | |
* DOC: See #10098 and minor punctuation cleanup
* DOC: Correcting per PR comments
|
| | |
|
| | |
|
|/
|
|
|
|
| |
* The np.ma functions are misleading, as they do not actually do anything special for ma.array
* The np.loads functions doesn't even have numpy-specific documentation, and does not behave consistently with `np.load`
* The string overloads of np.ma.load and np.ma.dump do not work well on python 3, as they make assumptions about whether a binary or text pickle file is used (gh-5491)
|
| |
|