| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
This PR uses simple cases of PEP 380 to rewrite:
for v in g:
yield v
into:
yield from <expr>
|
| |
|
|
|
|
|
|
|
| |
This replaces basestring with str except in
- tools/npy_tempita/
- numpy/compat/py3k.py
|
| |
|
| |
|
|
|
|
|
|
|
| |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
| |
|
|
|
| |
Parameter fname: generator must return byte strings for Python 3, not Python3k.
|
|
|
|
| |
Relates to gh-6103
|
| |
|
| |
|
|
|
|
|
|
|
| |
Note states that dictionary keys are stored as file names and may
undergo unintended changes when they are not recognized as valid
file names. In such cases the keys must be properly encapsulated
and escaped to avoid being changed.
|
|
|
|
|
|
| |
Note indicates that when used with dictionaries, savez will remove
leading "/" in dictionary keys.
See #9265
|
|\ |
|
| |
| |
| |
| |
| | |
(#14070)
* DOC:Add example to clarify "numpy.save" behavior on already unclosed file
|
| | |
|
| |
| |
| |
| | |
For writing arrays, only the ``write`` method is necessary.
|
| |\ |
|
| | |\
| | | |
| | | | |
DOC: Document/ Deprecate functions exposed in "numpy" namespace
|
| | | | |
|
| | | | |
|
| |/ / |
|
| | | |
|
| | | |
|
| |\ \
| | | |
| | | |
| | | | |
fix-genfromtxt
|
| | |\ \
| | | | |
| | | | | |
DOC: Show the default value of deletechars in the signature of genfromtxt
|
| | | | | |
|
| | |\ \ \
| | | |/ /
| | |/| | |
BUG: (py2 only) fix unicode support for savetxt fmt string
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
By now, all that is needed is to also allow unicode strings to
pass through. Adds a test for the support which already succeeds
on python3.
Closes gh-4053 (replaces the old PR)
|
| | | | | |
|
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|