| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
... or when the input isn't/cannot be a set. I left a few usages, e.g.
in random sampling, where "set" is reasonable as informal description of
an array as the order doesn't matter; however, for e.g. np.gradient the
order of the returned list is clearly important, so "set" is wrong.
Also some other minor doc edits noticed during the grepping: using
`shape` instead of `form` in `cov` is consistent with most other places;
the wording in `Polynomial.trim` now matches other methods on the same
class.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit fixes the spelling of the ``delimeter`` kwarg to
``delimiter`` (note the second e -> i) in the npy_tempita module. This
npy_tempita vendorises Tempita a minimal templating language.
The spelling has been fixed in the official documentation [1] and source
code [2]. This commit fixes that fix by aligning npy_tempita with the
reference documentation.
Although the vendored version is used in NumPy the delimeter kwarg is
not. This raised the consideration of reverting to either the original
version or Cython's non-vendored version [3]. Both were decided against
because:
1. The original is not actively maintained and required some fixes.
2. Cython's Tempita is an internal Cython tool and Cython may not
guarantee that it will be present.
[1] https://pyrocore.readthedocs.io/en/latest/tempita.html
[2] https://bitbucket.org/ianb/tempita/src/default/tempita/__init__.py
[3] https://github.com/cython/cython/blob/master/Cython/Tempita/_tempita.py
|
| |
|
|
|
|
|
|
|
| |
* make exception raising 2/3 compatible
* remove unnecesary else statement after while loop without break clause
* ensure file is always enclosed even in the event of an exception
* ensure list comprehension variable does not override enclosing loop variable
|
|
Copy tempita from https://github.com/gjhiggins/tempita with a few
changes to remove the six dependency. This removes a dependency on
Cython's tempita, which is not to be relied on as it is considered by
the Cython folks to be an implementation detail. The package is named
npy_tempita so that it can always be distinguished from an installed
tempita.
The cythonize.py script is changed to use the vendorized tempita.
|