Ticket #507 (closed enhancement: fixed)
for-in loop over any C array type
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.13 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description (last modified by scoder) (diff)
This should work:
cdef int nums[10] = {...}
cdef int i
for i in nums:
print i
as well as this:
cdef int* nums = ...
cdef int i
for i in nums[:10]:
print i
Change History
Note: See
TracTickets for help on using
tickets.
