summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/src/array_from_pyobj
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Support character string arraysPearu Peterson2022-06-051-3/+4
| | | | | | | | | | | | | | | | TST: added test for issue #18684 ENH: f2py opens files with correct encoding, fixes #635 TST: added test for issue #6308 TST: added test for issue #4519 TST: added test for issue #3425 ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook. ENH: Add support for detecting utf-16 and utf-32 encodings.
* DEP: remove NPY_ARRAY_UPDATEIFCOPY, deprecated in 1.14 (#20589)Matti Picus2021-12-181-1/+0
| | | | | | | | | | | | | * DEP: remove NPY_ARRAY_UPDATEIFCOPY, deprecated in 1.14 * remove more UPDATEIFCOPY * typo: add missing comma * remove a few more UPDATEIFCOPY * Add release note * remove UPDATEIFCOPY from comment (from review)
* MAIN: Minor include rationalization.Charles Harris2021-09-031-1/+3
| | | | | | | - Replace "Python.h" by <Python.h> - Replace "structmember.h" by <structmember.h> - Replace <npy_config> by "npy_config" - Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files.
* BUG: revise string_from_pyobj/try_pyarr_from_string with respect to malloc ↵Pearu Peterson2021-06-151-1/+1
| | | | and copy (the second round)
* Revert "BUG: revise string_from_pyobj/try_pyarr_from_string with respect to ↵Ralf Gommers2021-06-131-1/+1
| | | | malloc and copy." (#19235)
* MAINT: apply sizeof(char)==1Pearu Peterson2021-05-261-1/+1
|
* Merge branch 'master' into cleanup-LongEric Wieser2020-08-241-13/+8
|\
| * MAINT: Remove uses of PyString_FromString.Charles Harris2020-08-191-13/+8
| | | | | | | | | | | | | | | | We no longer need to use the compatibility function after dropping support for Python 2.7. In some cases unicode was the correct string type rather than the bytes of the compatibility version and bugs in the array `__complex__` and array `__array_interface__` methods have been fixed by changing that.
* | MAINT: Replace PyInt macros with their PyLong replacementEric Wieser2020-08-241-4/+4
|/ | | | Unlike the others, PyInt_Check has a special meaning distinc from PyLong_Check, so only the places where the difference doesn't matter have been updated here.
* MNT: support python 3.10Thomas A Caswell2020-05-291-1/+1
| | | | | | | | | | | | In https://github.com/python/cpython/pull/20290 CPython changed `Py_TYPE` from a macro to an inline function. This requires a code change to us `Py_SET_TYPE` instead when using `Py_TYPE()` as a lvalue in c code. In https://github.com/python/cpython/pull/20429 CPython changed `Py_SIZE` from a macro to an inline function. This requires a code change to us `Py_SET_SIZE` instead of using `Py_SIZE` as a lvalue in c code.
* Cleaning up PY_MAJOR_VERSION/PY_VERSION_HEXSeth Troisi2020-01-031-2/+0
|
* MAINT: Remove Python2 specific C module setup (gh-15231)Seth Troisi2020-01-031-11/+1
| | | | | Dropping the support for python 2, the difference in module setup do not have to be accounted for anymore. This removes the macros and ifdef's related to module setup code and python 2 support.
* BUG: Further, followup f2py reference count fixesSebastian Berg2019-08-191-3/+16
| | | | | | | | Note that the extension module dict seems to be never dereferenced (there is an additional reference to it kept around somewhere). This reference seems to part of the C python module loading (possibly intentionally), and I could not find how to remove it or where it originates from.
* BUG: General fixes to f2py reference counts (dereferencing)Sebastian Berg2019-08-191-56/+64
|
* MAINT: Hard tab and whitespace cleanup.Charles Harris2018-03-081-13/+13
|
* DEP, ENH: deprecate UPDATEIFCOPY (except for nditer) and replace with ↵Matti Picus2017-11-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WRITEBACKIFCOPY (#9639) * ENH: add API to resolve UPDATEONCOPY outside dealloc, test and use * BUG: Fix usage of keyword "from" as argument name for "can_cast". Also removed inconsistency between the second argument name between documentation ("totype") and code ("to"). * UPDATEIFCOPY -> WRITEBACKIFCOPY, documentation * fixes for review * review2, fix new test * fix new test for using self.assert_deprecated * change deprecation logic as per review * new logic exposed places where PyArray_ResolveWritebackIfCopy not called * deprecate PyArray_XDECREF_ERR in favor of PyArray_DiscardWritebackIfCopy * code review changes * clean up merge cruft * fix from review * fixes from review * extend the release note
* DEP: removed deprecated API calls from test code (wrapmodule.c)Chris Kerr2014-11-101-31/+31
|
* Use PyMODINIT_FUNC and update docs accordingly.cgohlke2012-09-021-1/+1
| | | | See https://github.com/scipy/scipy/pull/279
* STY: f2py - replace macros in old_defines.h with new.Charles Harris2012-02-041-26/+26
|
* BUG: Fix memory leak in f2py_rout_wrap_call test.Michael Droettboom2011-05-021-1/+3
|
* 3K: f2py: port the array_from_pyobj test module to Py3Pauli Virtanen2010-03-061-1/+26
|
* ENH: f2py: convert test suite to Nose formPauli Virtanen2010-03-061-0/+196
Rewrite F2Py's test suite, so that it is run as a part of Numpy's tests. These tests require compiling extension modules on-the-fly, so I added a small helper module for that.