Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 2to3: Replace xrange by range and use list(range(...)) where needed | Charles Harris | 2013-03-27 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | In python3 range is an iterator and `xrange` has been removed. This has two consequence for code: 1) Where a list is needed `list(range(...))` must be used. 2) `xrange` must be replaced by `range` Both of these changes also work in python2 and this patch makes both. There are three places fixed that do not need it, but I left them in so that the result would be `xrange` clean. Closes #3092 | ||||
* | 2to3: Put `from __future__ import division in every python file. | Charles Harris | 2013-03-01 | 19 | -15/+30 |
| | | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates. | ||||
* | 2to3: apply exec fixer results. | Charles Harris | 2013-02-28 | 1 | -1/+1 |
| | | | | This changes the `exec` command to the `exec` function. | ||||
* | DEP: Remove scons related files and code. | Charles Harris | 2013-01-13 | 3 | -23/+0 |
| | | | | | | | | | This removes files and code supporting scons builds. After this change numpy will only support builds using distutils or bento. The removal of scons has been discussed on the list several times and a decision has been made that scons support is no longer needed. This was originally discussed for numpy 1.7 and because the distutils and bento methods are still available we are skipping the usual deprecation period. | ||||
* | Use PyMODINIT_FUNC and update docs accordingly. | cgohlke | 2012-09-02 | 1 | -1/+1 |
| | | | | See https://github.com/scipy/scipy/pull/279 | ||||
* | Rename PyArray_RequireWriteable to PyArray_FailUnlessWriteable | Nathaniel J. Smith | 2012-05-22 | 1 | -3/+3 |
| | | | | | | Also clean up its API slightly so that the caller passes in a name describing the array being checked which is used to generate an error message, rather than writing an error message from scratch. | ||||
* | Funnel all assignments to PyArrayObject->base through a single point | Nathaniel J. Smith | 2012-05-15 | 1 | -3/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | This patch removes all direct assignments of non-NULL values to the 'base' field on PyArrayObjects. A new utility function was created to set up UPDATEIFCOPY arrays, and all assignments to 'base' were adjusted to use either PyArray_SetBaseObject or the new PyArray_SetUpdateIfCopyBase. One advantage of this is that it produces more consistent error handling. This error handling revealed a bug in the nditer code, which this patch does *not* yet fix. The bug is that npyiter_new_temp_array sometimes (when dealing with reversed axes) creates an array and then returns a view onto it. But, npyiter_allocate_arrays assumes that the array returned by npyiter_new_temp_array can have UPDATEIFCOPY set, which requires reassigning its 'base' field. Previously, this meant that the temporary array leaked. Now, it produces a ValueError. This code path doesn't seem to actually be hit very often; only one of the nditer tests fails because of the change. See numpy/core/tests/test_nditer.py:test_iter_array_cast_buggy | ||||
* | Consolidate all array writeability checking in new PyArray_RequireWriteable | Nathaniel J. Smith | 2012-05-15 | 1 | -10/+8 |
| | | | | | | | | | This is mostly a code cleanup, but it does have a user-visible effect in that attempting to write to a unwriteable array now consistently raises ValueError. (It used to randomly raise either ValueError or RuntimeError.) Passes numpy.test("full"). | ||||
* | DEP: Update all the '#define NPY_NO_DEPRECATED_API' instances to be | Mark Wiebe | 2012-04-06 | 1 | -1/+1 |
| | | | | versioned | ||||
* | UPDATE: Replace macros in old_defines.h by new. | Charles Harris | 2012-02-04 | 2 | -18/+18 |
| | | | | | With the exception of the numarray fixups these were all instances that were results of code generation. | ||||
* | STY: Remove trailing whitespace | Mark Wiebe | 2011-07-26 | 4 | -17/+17 |
| | |||||
* | ENH: core: Rename PyArray_SetBase to PyArray_SetBaseObject to be more clear | Mark Wiebe | 2011-07-22 | 1 | -1/+1 |
| | |||||
* | ENH: core: More cleanups removing direct PyArrayObject field access | Mark Wiebe | 2011-07-19 | 2 | -141/+141 |
| | |||||
* | ENH: core: Progress getting NumPy building without direct field access | Mark Wiebe | 2011-07-19 | 1 | -13/+19 |
| | |||||
* | STY: Replace remaining old style classes with classes subclassing object. | Charles Harris | 2011-04-05 | 1 | -2/+2 |
| | |||||
* | 3K: numarray: Python3 fixes in _capi.c | Pauli Virtanen | 2010-07-17 | 1 | -20/+24 |
| | | | | Thanks to Christoph Gohlke. | ||||
* | BUG: core: use PyCapsule objects only on Python >= 3.0, stay with PyCObjects ↵ | Pauli Virtanen | 2010-07-17 | 2 | -2/+2 |
| | | | | on Python 2.x | ||||
* | BUG: Fix problem with numarray _capi.c and python 2.7. | Charles Harris | 2010-05-24 | 1 | -2/+6 |
| | |||||
* | ENH, BUG: PyCObject will be deprecated in python 2.7. So use the NpyCapsule | Charles Harris | 2010-05-03 | 2 | -2/+2 |
| | | | | | | | compatibility functions in npy_3kcompat.h to replace the current calls. This gets rid of a number of version checks and is easier to maintain. Fix bug that was present in the ufunc _loop1d_list_free destructor in the python3k case. | ||||
* | ENH: get rid of #warning directives, either by fixing the issue or changing ↵ | Pauli Virtanen | 2010-04-04 | 1 | -3/+3 |
| | | | | them to comments | ||||
* | ENH: Try to fix numarray _capi.c for Python >= 3.1. Needs testing that I am not | Charles Harris | 2010-02-25 | 1 | -10/+40 |
| | | | | in a position to do. | ||||
* | BUG: NPY_PY3K probably isn't defined when libnumarray.h is included. | Charles Harris | 2010-02-23 | 1 | -1/+1 |
| | |||||
* | BUG: Replace deprecated PyCObject by PyCapsule for Python >= 3.1. | Charles Harris | 2010-02-23 | 2 | -21/+44 |
| | |||||
* | Fix bad usage of namespace alias change | chanley | 2010-02-22 | 1 | -5/+5 |
| | |||||
* | STY: Use import numpy as np. This seems to fix an import error introduced by | Charles Harris | 2010-02-21 | 1 | -5/+13 |
| | | | | | 2to3, but that may have been an artifact from a previous build. In anycase, no harm done. | ||||
* | BUG: fix numarray._capi compilation | Pauli Virtanen | 2010-02-21 | 1 | -1/+1 |
| | |||||
* | 3K: ENH: make numpy.numarray to import | Pauli Virtanen | 2010-02-21 | 1 | -0/+3 |
| | |||||
* | 3K: ENH: move numarray includes under numarray/include so that the 'numpy' ↵ | Pauli Virtanen | 2010-02-21 | 9 | -3/+3 |
| | | | | directory does not confuse 2to3's relative import conversion | ||||
* | BUG: fix numscons build. | David Cournapeau | 2009-12-10 | 1 | -2/+1 |
| | |||||
* | 3K: numarray: replace buffer APIs by dummy+error. Some ob_types. | Pauli Virtanen | 2009-12-06 | 1 | -4/+31 |
| | |||||
* | ENH: Fix some more uninitialized vars. | David Cournapeau | 2009-09-16 | 1 | -18/+52 |
| | |||||
* | Fix installation of numarray headers on Windows. | Stefan van der Walt | 2009-06-09 | 1 | -1/+1 |
| | |||||
* | Reindent and cleanup whitespace. | Charles Harris | 2009-06-03 | 1 | -2316/+2314 |
| | |||||
* | More signed/unsigned comp fixes. | David Cournapeau | 2009-03-09 | 1 | -6/+6 |
| | |||||
* | Fix wrong typedef for UInt64. | David Cournapeau | 2009-03-03 | 1 | -1/+1 |
| | |||||
* | ran reindent | Jarrod Millman | 2008-12-31 | 1 | -1/+1 |
| | |||||
* | More unused vars tagged. | David Cournapeau | 2008-10-08 | 1 | -15/+16 |
| | |||||
* | Removed unused/duplicate imports. | Alan McIntyre | 2008-09-13 | 5 | -27/+18 |
| | | | | | | | | Removed repeated members of __all__. Fixed reference to undefined "out" in functions.py:take function. Fixed references to undefined "N" in functions.py. Rewrapped lines to conform to PEP8. Fixed references to undefined FPE_* constants (from numpy) in util.py. | ||||
* | Simplify a bit more scons scripts. | David Cournapeau | 2008-07-09 | 1 | -1/+1 |
| | |||||
* | Use NumpyPythonExtension instead of DistutilsPythonExtension where possible. | David Cournapeau | 2008-07-09 | 1 | -3/+2 |
| | |||||
* | Restore old test framework classes. | Alan McIntyre | 2008-06-21 | 1 | -1/+1 |
| | | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc. | ||||
* | Switched to use nose to run tests. Added test and bench functions to all ↵ | Alan McIntyre | 2008-06-17 | 1 | -0/+4 |
| | | | | modules. | ||||
* | Adapt numpy.numarray to new build dir convention. | David Cournapeau | 2008-06-12 | 2 | -9/+11 |
| | |||||
* | Do not mess with __NUMPY_SETUP__ in scons scripts anymore: this is handled in | David Cournapeau | 2008-05-20 | 1 | -4/+1 |
| | | | | | numscons. | ||||
* | numarray now builds with scons | David Cournapeau | 2008-01-07 | 2 | -0/+26 |
| | |||||
* | typo | Jarrod Millman | 2007-12-29 | 1 | -1/+1 |
| | |||||
* | typo | Jarrod Millman | 2007-12-29 | 1 | -1/+1 |
| | |||||
* | janitorial work | Jarrod Millman | 2007-12-29 | 1 | -50/+55 |
| | |||||
* | Fix building on freebsd [patch by Joe Peterson]. | Stefan van der Walt | 2007-12-14 | 1 | -3/+7 |
| | |||||
* | use 'in' keyword to test dictionary membership | Jarrod Millman | 2007-11-28 | 2 | -4/+4 |
| |