summaryrefslogtreecommitdiff
path: root/numpy/f2py/src
Commit message (Collapse)AuthorAgeFilesLines
* MANT: Use Py_RETURN_NONE whenever Py_None is returnedJaime Fernandez2015-04-241-2/+1
|
* Merge pull request #5309 from rgommers/remove-f2py-deprecationCharles Harris2015-01-061-3/+0
|\ | | | | MAINT: remove NPY_NO_DEPRECATED_API define from f2py.
| * MAINT: remove NPY_NO_DEPRECATED_API define from f2py.Ralf Gommers2014-11-231-3/+0
| | | | | | | | | | See gh-5281 for discussion. With the defines in, compiling scipy 0.14.0 and below isn't possible.
* | Merge pull request #5287 from chatcannon/reconcile-c-api-with-docsJulian Taylor2014-12-101-7/+10
|\ \ | |/ |/| | | Reconcile C API with docs
| * MAINT: cast PyArray_ITEMSIZE result to avoid warningsJulian Taylor2014-12-101-3/+3
| | | | | | | | return type depends on API version used
| * MAINT: Update printf statements in fortranobject.cChris Kerr2014-12-101-5/+8
| | | | | | | | Using NPY_INTP_FMT to format PyArray_ITEMSIZE
* | MAINT: change place where NPY_NO_DEPRECATED_API is defined in f2py.Ralf Gommers2014-11-162-2/+3
|/ | | | | This makes sure to undef at the end, and by putting the define in the C code it ensures that the error message is understandable.
* DEP: #declaring NPY_NO_DEPRECATED_API in fortranobject.hChris Kerr2014-11-101-0/+2
|
* DEP: Replace NPY_CONTIGUOUS with NPY_ARRAY_C_CONTIGUOUSChris Kerr2014-11-101-1/+1
|
* DEP: Corrected some type errors that appear when enabling NPY_NO_DEPRECATED_APIChris Kerr2014-11-101-7/+7
|
* DEP: Replaced NPY_[F,C]ARRAY with NPY_ARRAY_[F,C]ARRAYChris Kerr2014-11-101-4/+4
|
* DEP: Using the internal PyArrayObject_fields API for the swap_arrays and ↵Chris Kerr2014-11-101-2/+5
| | | | dump_attrs functions
* DEP: Replaced arr->descr, arr->flags and arr->base with the PyArray_* functionsChris Kerr2014-11-102-2/+2
|
* DEP: replaced arr->dimensions with PyArray_DIMS(arr) or PyArray_DIM(arr,i)Chris Kerr2014-11-101-11/+11
|
* DEP: replaced arr->data with PyArray_DATAChris Kerr2014-11-101-1/+1
|
* DEP: Replaced arr->nd with PyArray_NDIM in fortranobject.cChris Kerr2014-11-101-18/+18
|
* MAINT: f2py: rewrite fortran_docLars Buitinck2014-09-281-68/+124
| | | | | | | | | Should not use sprintf, and certainly not with incorrect error checking (gh-5044). Entirely rewritten for readability. Also replaced a few sprintf calls that were just copying strings without interpretation by the simpler and possibly faster strcpy/strcat. (These need to be replaced by something more sensible.)
* Changed the `goto fail` to a `return PyErr_NoMemory()`Chris Kerr2014-09-041-1/+4
|
* Add NULL check after malloc() in fortranobject.cChris Kerr2014-09-041-0/+1
|
* Merge pull request #4315 from charris/fix-gh-2408Charles Harris2014-02-201-8/+6
|\ | | | | BUG: #2408, Fix f2py Python 3 error message string bug.
| * BUG: #2408, Fix f2py Python 3 error message string bug.Charles Harris2014-02-171-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The original was generating an exception message and, after aliasing, calling PyBytes_AsString on a unicode string -> error. It was also leaking references, although that probably didn't matter in context. The fix here is on the cheap side, just use a C string for the message without including the extra information about the erroneous type that led to the exception. No test, I don't know how to evoke this error. Closes #2408.
* | BUG: #4256: f2py, PyString_FromStringAndSize is undefined in Python3.Charles Harris2014-02-161-0/+5
|/ | | | | | | | | Use PyUString_FromStringAndSize defined in npy_3kcompat instead. Not using bytes may cause some problems, but strings seem like a better choice. As modules generated with current f2py error out, this particular use is not common and we are free to choose. Closes #4256.
* MAINT: fix some f2py related build warnings.Ralf Gommers2014-01-221-1/+1
|
* MAINT: Remove outdated version checks.Charles Harris2013-07-111-21/+0
| | | | | | | | | | Because Numpy 1.8.0 will no longer supports Python versions < 2.6 we no longer need to check for that and can also remove the code that is specific to those earlier versions. To make this a bit safer, the toplevel setup.py file now contains a check of the Python version number and raises an error when run by an unsupported version.
* BUG: Choose a more unique PY_ARRAY_UNIQUE_SYMBOL in f2py.Bradley M. Froehle2013-02-241-1/+1
| | | | | | | | | | | | | In a few exceptional cases where symbols are shared between different Python modules the use of `PyArray_API` in f2py (fortranobject.h) conflicts with the regular use of the same symbol in the multiarray module. Generally the symptom of this conflicting use is a segfault when importing a f2py'ed module. This occurs because the module init code somehow overwrites the first element of `PyArray_API` with the location of `PyArray_API`, causing a crash when `PyArray_GetNDArrayCVersion` is called. Closes gh-2521.
* ENH: f2py: generate docstrings in Numpy docstring formatPauli Virtanen2012-11-171-1/+1
|
* STY: f2py - replace macros in old_defines.h with new.Charles Harris2012-02-042-9/+9
|
* BUG: core: use PyCapsule objects only on Python >= 3.0, stay with PyCObjects ↵Pauli Virtanen2010-07-172-3/+3
| | | | on Python 2.x
* ENH, BUG: PyCObject will be deprecated in python 2.7. So use the NpyCapsuleCharles Harris2010-05-032-6/+6
| | | | | | | 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.
* 3K: f2py: port much of f2py C code to Py3Pauli Virtanen2010-03-062-6/+89
|
* BUG: f2py: ensure that ARRAY_ISCOMPATIBLE macro handles also booleansPauli Virtanen2010-03-061-0/+1
|
* ENH: Add support for PyCapsule.Charles Harris2010-02-252-1/+70
|
* Introduced intent(align4|align8|align16) attributes. Fixes scipy ticket 794 ↵Pearu Peterson2009-10-252-1/+24
| | | | after using intent(align8) in the corresponding scipy pyf files.
* Changed an idiom of appending strings to a buffer. Fixes numpy ticket 792.Pearu Peterson2008-05-151-12/+39
|
* Catch wrong array sizes when the length of an array is 1.Pearu Peterson2008-01-251-7/+16
|
* Fix whitespace to conform to Python 3000 convention.Stefan van der Walt2007-08-212-667/+669
|
* Fix some reference-count problems in f2py with data-type objects.Travis Oliphant2006-10-301-12/+21
|
* Fix f2py and docTravis Oliphant2006-07-081-1/+1
|
* More f2py changesTravis Oliphant2006-07-081-20/+20
|
* More fixes to f2pyTravis Oliphant2006-07-081-4/+4
|
* Fix f2py to use new namesTravis Oliphant2006-07-082-21/+21
|
* Fix missing error check.Travis Oliphant2006-04-271-0/+1
|
* Fix f2py to handle character arrays in common blocksTravis Oliphant2006-03-082-5/+28
|
* Fixed f2py bug in calculating dims vector when expected rank equals to array ↵Pearu Peterson2006-01-251-29/+36
| | | | rank.
* Remove bad 'fix' for f2pyTravis Oliphant2006-01-241-2/+4
|
* Comment change in fortranobject.c better.Travis Oliphant2006-01-221-0/+4
|
* Added LICENSE.txt to distribution. Fixed f2py check_and_fix_dimensions to ↵Travis Oliphant2006-01-221-0/+14
| | | | not reverse dimensions.
* Fixed up PyArray_FromAny and friends for API --- recompile extensions...Travis Oliphant2006-01-191-1/+1
|
* Changed all references to scipy to numpyTravis Oliphant2006-01-041-1/+1
|
* Moved scipy directory to numpyTravis Oliphant2006-01-048-0/+1223