Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 3K: core: fix a few str vs bytes issues in tests | Pauli Virtanen | 2010-02-21 | 3 | -14/+20 | |
| | ||||||
* | 3K: matrixlib: adapt to changes in str.translate | Pauli Virtanen | 2010-02-21 | 1 | -14/+26 | |
| | ||||||
* | 3K: ENH: regenerate mtrand.c with a newer Cython, for better Python 3 ↵ | Pauli Virtanen | 2010-02-21 | 1 | -4686/+5426 | |
| | | | | compatibility | |||||
* | 3K: core/numerictypes: fix handling of Python types, and recognize bytes as ↵ | Pauli Virtanen | 2010-02-21 | 1 | -7/+15 | |
| | | | | a Python type | |||||
* | 3K: BUG: fix unravel_index integer division | Pauli Virtanen | 2010-02-21 | 1 | -1/+1 | |
| | ||||||
* | 3K: ENH: ensure integer scalar types are hashable -- we don't automatically ↵ | Pauli Virtanen | 2010-02-21 | 1 | -8/+12 | |
| | | | | inherit the hash implementation from Python ints on 3K | |||||
* | DEP: Fix more files for unittest deprecated functions. It isn't clear why these | Charles Harris | 2010-02-21 | 12 | -206/+206 | |
| | | | | tests didn't issue deprecation warnings. Are they being run? | |||||
* | DEP: Fix deprecation warnings in Python 3.1. The warnings come from the unittest | Charles Harris | 2010-02-20 | 11 | -434/+434 | |
| | | | | | | | | | module. The fix should be good for Python >= 2.4 and used the following sed script: s/\<failUnless\>/assertTrue/g s/\<failIf\>/assertFalse/g s/\<failUnlessEqual\>/assertEqual/g s/\<failUnlessRaises\>/assertRaises/g | |||||
* | BUG: ensure Py_TYPE is available in _dotblas.c on Python 2.4 and 2.5 | Pauli Virtanen | 2010-02-20 | 1 | -0/+6 | |
| | ||||||
* | BUG: fix a few missing includes that may cause problems on 64-bit | Pauli Virtanen | 2010-02-20 | 3 | -0/+5 | |
| | ||||||
* | 3K: BUG: fix refcount error in npy_PyFile_Dup | Pauli Virtanen | 2010-02-20 | 1 | -0/+1 | |
| | ||||||
* | BUG: properly check the return value of numpy.core._internal._dtype_from_pep3118 | Pauli Virtanen | 2010-02-20 | 1 | -3/+10 | |
| | ||||||
* | 3K: BUG: core: fix ucsnarrow.c:MyPyUnicode_New to work correctly on Py3 | Pauli Virtanen | 2010-02-20 | 1 | -0/+3 | |
| | ||||||
* | BUG: fix a crash due to mixing PyUnicode and PyString | Pauli Virtanen | 2010-02-20 | 1 | -1/+10 | |
| | ||||||
* | 3K: BUG: work around bugs in Python 3.1.1 2to3 by not using fixes_reduce | Pauli Virtanen | 2010-02-20 | 10 | -9/+42 | |
| | | | | Instead, manually import reduce where necessary. | |||||
* | BUG: another single-file compilation fix | Pauli Virtanen | 2010-02-20 | 1 | -0/+2 | |
| | ||||||
* | BUG: lib: ensure 'bytes' is imported in io.py | Pauli Virtanen | 2010-02-20 | 1 | -1/+1 | |
| | ||||||
* | 3K: core: fix single-file compilation | Pauli Virtanen | 2010-02-20 | 1 | -0/+1 | |
| | ||||||
* | 3K: Some remaining Py_TYPE issues | Pauli Virtanen | 2010-02-20 | 2 | -2/+2 | |
| | ||||||
* | 3K: lib: more str vs bytes issues in the lib/io loadtxt, savetxt and genfromtxt | Pauli Virtanen | 2010-02-20 | 5 | -67/+104 | |
| | ||||||
* | ENH: compat: additional Py3 convenience functions | Pauli Virtanen | 2010-02-20 | 1 | -3/+9 | |
| | ||||||
* | 3K: lib: fix savetxt | Pauli Virtanen | 2010-02-20 | 1 | -9/+23 | |
| | | | | | | This will make savetxt open files in the 'wb' mode on Python 3. To allow using any sort of newlines (which are different e.g. on Windows), add a new 'newline' keyword. | |||||
* | 3K: lib: fix some bytes vs. str issues in _iotools.py and io.py -- mainly ↵ | Pauli Virtanen | 2010-02-20 | 5 | -88/+143 | |
| | | | | genfromtxt | |||||
* | 3K: lib: even more bytes/str fixes in format.py tests | Pauli Virtanen | 2010-02-20 | 1 | -6/+8 | |
| | ||||||
* | 3K: lib: use BytesIO in test_io | Pauli Virtanen | 2010-02-20 | 1 | -109/+115 | |
| | ||||||
* | 3K: lib: fix some bytes/str issues in _format.py and its tests | Pauli Virtanen | 2010-02-20 | 2 | -7/+22 | |
| | ||||||
* | ENH: lib: write fortran-contiguous data to files using arr.T.tofile instead ↵ | Pauli Virtanen | 2010-02-20 | 1 | -4/+5 | |
| | | | | | | | | | of arr.data (required for Py3 compatibility) The issue is that when passing a buffer object to Python's io.BufferedWriter.write, it will try to obtain the buffer using PyBUF_ND | PyBUF_C_CONTIGUOUS. This will fail for strided arrays -- seems to be an issue in Python, as it probably should try to obtain a SIMPLE buffer. | |||||
* | 3K: core: in tofile etc., ensure the file is flushed before switching to ↵ | Pauli Virtanen | 2010-02-20 | 1 | -0/+5 | |
| | | | | FILE* I/O | |||||
* | 3K: lib: adapt safe_eval for Py3 ast module | Pauli Virtanen | 2010-02-20 | 1 | -32/+88 | |
| | ||||||
* | 3K: compat: make isfileobj recognize only real file objects with FILE* ↵ | Pauli Virtanen | 2010-02-20 | 1 | -1/+1 | |
| | | | | pointers as file objects | |||||
* | 3K: lib: do not slice range() in _iotools needlessly | Pauli Virtanen | 2010-02-20 | 1 | -1/+1 | |
| | ||||||
* | 3K: lib: Make _datasource and its tests Py3 compatible + slight cleanup of ↵ | Pauli Virtanen | 2010-02-20 | 2 | -9/+12 | |
| | | | | the code | |||||
* | 3K: fft: fix integer division in (i)fftshift | Pauli Virtanen | 2010-02-20 | 1 | -2/+2 | |
| | ||||||
* | 3K: f2py: use integer division to avoid problems with string multiplication | Pauli Virtanen | 2010-02-20 | 1 | -1/+1 | |
| | ||||||
* | 3K: f2py: break cyclic imports (which are not allowed on Py3) by moving them ↵ | Pauli Virtanen | 2010-02-20 | 2 | -2/+3 | |
| | | | | to functions | |||||
* | 3K: ENH: core: alias __round__ -> round for the generic scalar type, for the ↵ | Pauli Virtanen | 2010-02-20 | 1 | -0/+6 | |
| | | | | round() builtin | |||||
* | ENH: core: Fix the test for #99 -- np.long == raw Python long. The test ↵ | Pauli Virtanen | 2010-02-20 | 1 | -5/+5 | |
| | | | | should test np.intp instead | |||||
* | 3K: core: fix pickling of unicode scalars on Py3 -- they do not have buffer ↵ | Pauli Virtanen | 2010-02-20 | 1 | -0/+8 | |
| | | | | interface, so we need to get the buffer via the standard route | |||||
* | 3K: lib: bytes vs. str fixes in lib.format and lib.io | Pauli Virtanen | 2010-02-20 | 2 | -5/+7 | |
| | ||||||
* | 3K: core: use BytesIO instead of StringIO in test_regressions on Py3 | Pauli Virtanen | 2010-02-20 | 1 | -0/+4 | |
| | ||||||
* | ENH: core: allow unicode file names in PyArray_Dump | Pauli Virtanen | 2010-02-20 | 1 | -1/+1 | |
| | ||||||
* | 3K: core: allow unicode type strings in __array_interface__ since we allow ↵ | Pauli Virtanen | 2010-02-20 | 1 | -1/+12 | |
| | | | | those also in dtypes | |||||
* | 3K: linalg: fix some str/bytes issues | Pauli Virtanen | 2010-02-20 | 1 | -20/+30 | |
| | ||||||
* | 3K: core: fix up some tests | Pauli Virtanen | 2010-02-20 | 1 | -2/+2 | |
| | ||||||
* | 3K: ENH: core/numerictypes: Update string/unicode aliases for Py3 | Pauli Virtanen | 2010-02-20 | 1 | -15/+55 | |
| | ||||||
* | 3K: ENH: on py3k, rename scalar type display names as unicode_ -> str_ and ↵ | Pauli Virtanen | 2010-02-20 | 1 | -1/+16 | |
| | | | | string_ -> bytes_ | |||||
* | BUG: core: make sure PyArray_FromAny respects wanted type and flags also for ↵ | Pauli Virtanen | 2010-02-20 | 2 | -2/+12 | |
| | | | | PEP 3118 objects | |||||
* | ENH: implement PEP 3118 buffer consumer on Py2.6, adding a simple Memoryview ↵ | Pauli Virtanen | 2010-02-20 | 10 | -16/+371 | |
| | | | | | | | | | | | | object To use PEP 3118 buffers as ndarray bases, we need to have a way to release the buffers on garbage collection. The easiest way to do this is to use a Memoryview object -- but they are not available on Python 2.6. Hence, we implement a minimal memory view object that only handles the garbage collection, and use it on Python 2.6. It also implements the new buffer protocol, to allow testing the functionality. | |||||
* | 3K: ENH: make defchararray work on Py3, and make its tests Py3 compliant | Pauli Virtanen | 2010-02-20 | 2 | -80/+124 | |
| | | | | There were mainly issues in mixing bytes/unicode on Py3. | |||||
* | ENH: Add some tools to numpy.compat | Pauli Virtanen | 2010-02-20 | 2 | -3/+16 | |
| |