summaryrefslogtreecommitdiff
path: root/tools/npy_tempita
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Avoid using "set of" when talking about an ordered list.Antony Lee2020-12-291-1/+1
| | | | | | | | | | | | ... 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.
* MAINT: Python2 CleanupsSeth Troisi2020-01-211-144/+48
|
* [MAINT] Cleanup python2 sys.version checksSeth Troisi2020-01-202-13/+4
|
* MAINT: cleanup sys.version dependant codeSeth Troisi2020-01-121-3/+0
|
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-052-9/+9
| | | | | | | 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.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-033-6/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUG: Fix for Python 4Hugo2019-08-261-1/+1
|
* DEV: Fix spelling error in npy_tempita kwargkai-striega2019-07-151-28/+28
| | | | | | | | | | | | | | | | | | | | | | | 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
* MAINT: Convert property to @propertyAlex Watt2019-02-241-10/+10
|
* MAINT: Fix alerts from http://lgtm.com (#9292)Jean Helie2017-06-261-29/+23
| | | | | | | * 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
* ENH: Vendorize tempita.Charles Harris2016-09-304-0/+1556
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.