| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | | |
MAINT: Use `.identifier = val` to fill type structs
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This changes it for most occurances (not quite all), some small
slots, e.g. the buffer interface, are not changed unless close
to another defintion. There are no large chuncks of "filler"
zeros left though (except in rationaltests.c.src).
---
This was not used previously due to it requiring C99. Python
itself acknowledges that it can be used (they do almost not use it
as of now), except inside header files due to C++ compatibility.
See also (Found by Eric Wieser in PR):
https://mail.python.org/pipermail/python-dev/2017-January/147154.html
and PEP 7: https://www.python.org/dev/peps/pep-0007/#c-dialect
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This was not used previously due to it requiring C99. Python
itself acknowledges that it can be used (they do almost not use it
as of now), except inside header files due to C++ compatibility.
See also (Found by Eric Wieser in PR):
https://mail.python.org/pipermail/python-dev/2017-January/147154.html
and PEP 7: https://www.python.org/dev/peps/pep-0007/#c-dialect
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
DOC: document site.cfg.example
|
| | | | | | | | |
|
| | | | | | | | |
|
| |/ / / / / /
|/| | | | | |
| | | | | | |
| | | | | | | |
Move flag to parameters
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT: Eliminate messy _WORK macro
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
As requested during review of previous cleanups
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
| | | | | | / /
| |_|_|_|_|/ /
|/| | | | | | |
MAINT: Simplify scalar __new__ some more
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The comment about base-classes doing conversions was incorrect - these always return objects of the right type
The only way the `Py_TYPE(robj) == type` can fail is if the type cannot survive round-tripping through `PyArray_DescrFromType` and `PyArray_FromAny`.
The former applies to subclasses of numpy types, while the latter is probably caused by a bug elsewhere.
This allows the `goto` to be eliminated, which means all the declarations can be pushed down.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT: Cleanup references to python2
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
STY,MAINT: avoid 'multiple imports on one line'
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
* PEP 8: "Imports should usually be on separate lines"
* Where modified, sort imported modules alphabetically
* Clean-up unused imports from these expanded lines
|
|\ \ \ \ \ \ \ \ \
| | |_|/ / / / / /
| |/| | | | | | | |
MAINT: Simplify `np.object_.__new__`
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
This is super hard to read for being part of a templated function which it has very little in common with.
Writing out OBJECT_arrtype_new separately makes it easier to follow, and possible to simplify.
It also uses fewer lines!
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
* remove parentheses in the if statements
* use tuples instead of lists in if conditions
* use tuples instead of chained OR conditions
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
More sys.version cleanup.
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Modified __dir__() to remove duplicate "Tester/Testing" attribute. Also added a test to verify this.
Closes gh-15383
|
| |/ / / / / / /
|/| | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
The bug occurs since numpy 1.16. Before that empty descr corresponds to
`np.dtype([])`. This fixes the problem by following numpy 1.15's
behavior.
Closes gh-15396
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This PR uses simple cases of PEP 380 to rewrite:
for v in g:
yield v
into:
yield from <expr>
|
|\ \ \ \ \ \ \ \
| |_|/ / / / / /
|/| | | | | | | |
BUG: Reject nonsense arguments to scalar constructors
|
| |/ / / / / / |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes #11304
|
|\ \ \ \ \ \ \
| |/ / / / / /
| | | | | | | |
MAINT: Tidy macros in scalar_new
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Rather than trying to keep track of weird tri-state `@default@` and `@work@` variables, this uses a primitive dictionary with types as keys.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
DEP: add PendingDeprecation to matlib.py funky namespace
|
| | | | | | | | |
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
ENH: Make use of ExitStack in npyio.py
|
| | | | | | | | | |
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
DOC: distutils: Add a docstring to show_config().
|
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
Thanks to Sergey Kojoian for the original patch to create
the docstring.
Closes gh-9258.
|
|\ \ \ \ \ \ \ \ \ \
| |_|_|_|/ / / / / /
|/| | | | | | | | | |
MAINT: Updated polynomial to use fstrings
|
| |/ / / / / / / / |
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Corrected past shortcomings
|
| |_|_|_|/ / / /
|/| | | | | | |
| | | | | | | | |
Replace old strings format to fstrings
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
DOC: Improve ndarray.ctypes example
|
| | |/ / / / / /
| |/| | | | | | |
|
|\ \ \ \ \ \ \ \
| |_|/ / / / / /
|/| | | | | | | |
MAINT: Remove Python2 workarounds
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT: Inline gentype_getreadbuf
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT, DOC: Remove use of old Python __builtin__, now known as builtins
|
| |/ / / / / / |
|