Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | 2to3: Use absolute imports. | Charles Harris | 2013-03-28 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172 | |||||
* | | 2to3: Replace xrange by range and use list(range(...)) where needed | Charles Harris | 2013-03-27 | 1 | -2/+2 | |
|/ | | | | | | | | | | | | | | | 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 | 1 | -0/+2 | |
| | | | | | | | | 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. | |||||
* | DOC: Fix outdated docstring. | Tony S Yu | 2012-04-09 | 1 | -5/+5 | |
| | | | | Equal and nearly-equal size requirement is not true when passing a 1-D array of indices. | |||||
* | DOC: merge wiki doc edits. | Ralf Gommers | 2012-03-03 | 1 | -2/+2 | |
| | ||||||
* | STY: Fix up some two line old-style exceptions. | Charles Harris | 2011-04-05 | 1 | -2/+2 | |
| | ||||||
* | STY: Update exception style, easy ones. | Charles Harris | 2011-04-05 | 1 | -5/+5 | |
| | ||||||
* | DOC: wiki merge, twodim_base and a few loose ones. | rgommers | 2010-07-31 | 1 | -9/+8 | |
| | ||||||
* | more docstring updates from pydoc website (thanks to everyone who contributed!) | Jarrod Millman | 2010-02-17 | 1 | -7/+7 | |
| | ||||||
* | fixed a whole bunch of doctests | Paul Ivanov | 2009-12-28 | 1 | -3/+3 | |
| | ||||||
* | All non core regressions tests moved to their respective modules. | David Cournapeau | 2009-09-16 | 1 | -257/+2 | |
| | ||||||
* | add support for __array_prepare__ | Darren Dale | 2009-08-23 | 1 | -1/+17 | |
| | ||||||
* | Merge from doc wiki | Pauli Virtanen | 2009-06-19 | 1 | -16/+15 | |
| | ||||||
* | Merge from the doc wiki | Pauli Virtanen | 2009-03-24 | 1 | -120/+166 | |
| | ||||||
* | Import documentation from doc wiki (part 2, work-in-progress docstrings, but ↵ | Pauli Virtanen | 2008-10-28 | 1 | -22/+50 | |
| | | | | they are still an improvement) | |||||
* | Merge from documentation editor. | Stefan van der Walt | 2008-08-05 | 1 | -311/+689 | |
| | ||||||
* | Use the implicit "import numpy as np" made available to all doctests instead | Alan McIntyre | 2008-07-05 | 1 | -37/+33 | |
| | | | | | of explicit imports or dependency on the local scope where the doctest is defined.. | |||||
* | Use the implicit "import numpy as np" made available to all doctests instead ↵ | Alan McIntyre | 2008-07-03 | 1 | -3/+2 | |
| | | | | | | | of an explicit import. Remove ">>>" from bartlett plotting example since it currently requires matplotlib. | |||||
* | ran reindent.py to clean up whitespace | Jarrod Millman | 2007-10-29 | 1 | -1/+1 | |
| | ||||||
* | Tile empty arrays. | Stefan van der Walt | 2007-07-10 | 1 | -2/+2 | |
| | ||||||
* | Fix docstring typo for vstack() | edschofield | 2007-05-24 | 1 | -1/+1 | |
| | ||||||
* | Fix doctests. | Stefan van der Walt | 2007-02-18 | 1 | -11/+15 | |
| | ||||||
* | Fix docstrings for loading with DocFileSuite. | Stefan van der Walt | 2007-02-18 | 1 | -23/+24 | |
| | ||||||
* | clean up unused imports and bad whitespace | Tim Leslie | 2007-01-09 | 1 | -1/+1 | |
| | ||||||
* | Whitespace cleanup. | Stefan van der Walt | 2007-01-08 | 1 | -7/+6 | |
| | ||||||
* | fix for #407 and add unit test for it | Tim Leslie | 2007-01-08 | 1 | -2/+2 | |
| | ||||||
* | Apply #368 | Travis Oliphant | 2006-11-02 | 1 | -4/+4 | |
| | ||||||
* | Add roll function from ticket #293 | Travis Oliphant | 2006-10-13 | 1 | -1/+1 | |
| | ||||||
* | Fix segfault in .imag for real array scalars. Be specific about infix ↵ | Travis Oliphant | 2006-10-10 | 1 | -1/+1 | |
| | | | | multiplication. | |||||
* | Fix kron for multiple-dimensions. kron is defined so tile(b, s) is the same ↵ | Travis Oliphant | 2006-10-09 | 1 | -7/+16 | |
| | | | | as kron(ones(s,b.dtype), b) | |||||
* | Fix kron to be N-dimensional. | Travis Oliphant | 2006-10-07 | 1 | -10/+13 | |
| | ||||||
* | Fix typo in tile. | Stefan van der Walt | 2006-10-07 | 1 | -1/+1 | |
| | ||||||
* | Add tests for tile and fix error. | Travis Oliphant | 2006-10-07 | 1 | -2/+2 | |
| | ||||||
* | Add tile to numpy and move repmat to matlib.py | Travis Oliphant | 2006-10-07 | 1 | -19/+54 | |
| | ||||||
* | Fix for #291 | Travis Oliphant | 2006-09-23 | 1 | -1/+1 | |
| | ||||||
* | Switch order of .put arguments to match the function call. Eliminate ↵ | Travis Oliphant | 2006-09-22 | 1 | -3/+3 | |
| | | | | .putmask as a method and make it only a function. | |||||
* | Fix column-stack to not transpose 2-d inputs. Fix iscomplex for strings. ↵ | Travis Oliphant | 2006-09-14 | 1 | -5/+13 | |
| | | | | Add deprecation warning for c_ | |||||
* | Clean-up some un-needed default axes. Fix default axes of ma.sum and ma.product | Travis Oliphant | 2006-08-29 | 1 | -2/+2 | |
| | ||||||
* | Add axis arguments to various functions so as not to rely on the defaults. | Travis Oliphant | 2006-08-29 | 1 | -14/+4 | |
| | ||||||
* | Restore un-needed axis arguments | Travis Oliphant | 2006-08-29 | 1 | -1/+1 | |
| | ||||||
* | Add axis argument to usages of take | Travis Oliphant | 2006-08-29 | 1 | -1/+1 | |
| | ||||||
* | Preserve matrices. Fix #142 | Travis Oliphant | 2006-06-13 | 1 | -2/+2 | |
| | ||||||
* | Check-in name-space changes so that numpy.oldnumeric is the compatibility ↵ | Travis Oliphant | 2006-06-12 | 1 | -1/+1 | |
| | | | | module and numpy does not contain all of the names. | |||||
* | Remove deprecated names from ma and tests. | Travis Oliphant | 2006-06-02 | 1 | -2/+2 | |
| | ||||||
* | Add row_stack as alias to vstack to complement column_stack. | Travis Oliphant | 2006-05-25 | 1 | -1/+3 | |
| | ||||||
* | Fix kron so that the return type reflects the type of its arguments. Also, ↵ | Tim Hochberg | 2006-04-20 | 1 | -3/+23 | |
| | | | | raise an exception if the arguments are not rank-2 since the other cases were some combination of ambiguous or broken. | |||||
* | Fix Ticket #52 | Travis Oliphant | 2006-04-12 | 1 | -0/+1 | |
| | ||||||
* | Simplify interfaces. Fix UCHAR bug. | Travis Oliphant | 2006-03-24 | 1 | -2/+2 | |
| | ||||||
* | clean up some imports | Tim Leslie | 2006-03-16 | 1 | -1/+2 | |
| | ||||||
* | Run reindent.py (script distributed with Python) over the source to remove ↵ | cookedm | 2006-03-10 | 1 | -16/+16 | |
| | | | | extraneous whitespace |