| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
MAINT: remove redundant open() modes and io.open() alias
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
`Python.h` must be included before including and standard library
headers, if it's pulled in (which happens when you include numpy
headers). Otherwise we see build warnings like:
```
142/244] Compiling C object numpy/core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so.p/src_multiarray_textreading_field_types.c.o
In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:86,
from ../numpy/core/include/numpy/npy_common.h:5,
from ../numpy/core/include/numpy/ndarraytypes.h:4,
from ../numpy/core/src/multiarray/textreading/field_types.h:9,
from ../numpy/core/src/multiarray/textreading/field_types.c:1:
/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/pytime.h:208:60: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration
208 | PyAPI_FUNC(int) _PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts);
| ^~~~~~~~
/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/pytime.h:213:56: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration
213 | PyAPI_FUNC(int) _PyTime_AsTimespec(_PyTime_t t, struct timespec *ts);
| ^~~~~~~~
/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/pytime.h:217:63: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration
217 | PyAPI_FUNC(void) _PyTime_AsTimespec_clamp(_PyTime_t t, struct timespec *ts);
| ^~~~~~~~
```
|
| |
| |
| |
| | |
[skip ci]
|
|/
|
|
| |
This fixes some annoying build warnings.
|
|
|
|
| |
This reverts commit 5d6b8b0d5658418919fbaef0e843655262291dbc.
|
|
|
| |
inifinity -> infinity
|
| |
|
|
|
|
|
|
| |
When using f2c, the generated C functions for all of these actually
return int. WebAssembly is strict on return types and will crash due
to the discrepancy.
|
| |
|
|
|
|
| |
Except block directly handles BaseException.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unmatchable caret in regular expression
This regular expression includes an unmatchable caret at offset 18.
Indeed this regex couldn't possibly match anything. Not only does the
regex look obsolete, attempting to match "inline" or "static" specifiers
that I cannot find in the sources produced by 'f2c', but the very logic
of function removeSubroutinePrototypes() makes it impossible to handle
'/* Subroutine */' declarations that span multiple lines.
All in all, function removeSubroutinePrototypes() does nothing at all.
We choose not to change that, because it works and we have no real hint
what it should do and why. We just document that.
|
|
|
|
| |
This is a Python 2 script, we need to preserve Python 2 compatibility.
|
|
|
|
|
|
|
| |
This is a Python 2 script, and will remain so for some time.
Instead of simply reverting the commit, use try/except to find the
proper way to import which.
|
| |
|
|
|
|
| |
Make crystal clear that these remain Python 2 scripts.
|
|
|
|
| |
This is a Python 2 script, revert Python 3 exception handling.
|
|
|
|
| |
This is a Python 2 script, revert Python 3 exception handling.
|
|
|
|
| |
This is a Python 2 script, fstrings are implemented in Python 3 only.
|
|
|
|
|
| |
This is actually a Python 2 script, not a Python 3 script.
Revert the shebang to its previous state.
|
|\
| |
| | |
MAINT: Minor include rationalizations.
|
| |
| |
| |
| |
| |
| |
| | |
- Replace "Python.h" by <Python.h>
- Replace "structmember.h" by <structmember.h>
- Replace <npy_config> by "npy_config"
- Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files.
|
| | |
|
|/ |
|
|\
| |
| | |
MAINT: Removed suitable unused variables shown in LGTM
|
| | |
|
| |
| |
| | |
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
|
|/
|
|
| |
Relates to ticket #19077
|
| |
|
|
|
|
|
|
| |
* follow up to gh-18083 covering multi-line uses
of `re.compile(..` and some cases for `re.match(..`
with single (meta)character classes
|
|
|
|
| |
Flagged by LGTM.
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|\
| |
| | |
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
|
|/
|
| |
More sys.version cleanup.
|
| |
|
|\
| |
| | |
MAINT: linalg: use symbol suffix in fallback lapack_lite
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When building the fallback lapack_lite library for numpy.linalg,
add symbol suffix to the routines when using 64-bit integer indices.
Adjust the lapack_lite generator script to also output a header file
that renames the symbols. Moreover, also rename symbols from f2c.c, to
be sure (because they have short and generic names that may clash).
This avoids a name clash with BLAS/LAPACK names, which can cause
problems in corner cases on platforms where inadvertent symbol
overriding in dynamic libraries can occur.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|
|
|
|
| |
Build the lapack fallback library (used when no LAPACK installed) with
64-bit integer size when building on a 64-bit platform.
|
| |
|
| |
|
|
|
|
| |
Revise the BLAS name mangling to support the general scheme.
|
| |
|