Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Python array support #113

Merged
merged 6 commits into from May 20, 2012
Commits on Apr 22, 2012
  1. Support for Python array objects. Adapted from patch at http://trac.c…

    andreasvc committed Apr 22, 2012
    …ython.org/cython_trac/ticket/314
    
    Changes: reverted Py_MEM_Realloc to Py_Mem_Resize, due to warnings
    removed inline keyword (not portable, and Py_LOCAL_INLINE causes warnings).
    moved a C declaration to top of function to avoid "mixed declaration"
Commits on May 2, 2012
  1. Single new array function

    andreasvc committed May 2, 2012
    Unfortunately cannot use default args in pxd file; I also wouldn't know how the two array functions could be added as methods to the array class.
    Restored "inline" attribute for array creation function, it can be disabled with a \#DEF
    Removed some unused/redundant attributes.
    Moved selected comments to docstrings.
    Replaced tabs w/spaces.
Commits on May 6, 2012
Commits on May 16, 2012
  1. updated test to use clone function.

    andreasvc committed May 16, 2012
    tests pass when compiled and run manually.