Skip to content

Commit de2d674

Browse files
Add irange.pxd with minimal Cython interface for dynd::irange.
1 parent 8c70ce8 commit de2d674

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

dynd/cpp/irange.pxd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from ..config cimport translate_exception
2+
3+
cdef extern from "dynd/irange.hpp" namespace "dynd" nogil:
4+
cppclass irange:
5+
irange()
6+
# Use size_t for this interface since Cython doesn't know
7+
# how to directly convert integer literals in the source
8+
# to intptr_t. It can do that with size_t and on the overwhelming
9+
# majority of platforms that's exactly the same thing.
10+
irange(size_t)
11+
irange(size_t, size_t)
12+
irange(size_t, size_t, size_t)

0 commit comments

Comments
 (0)