Ticket #340 (new defect)
Problem with buffer/memview parsing strategy
| Reported by: | dagss | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | wishlist |
| Component: | Parsing | Keywords: | kurtgsoc |
| Cc: |
Description
gsoc-kurt branch
In Parsing.py it says:
# (This means that buffers/memviews cannot occur where there can be empty # declarators, which is an ok restriction to make.)
However, this may not be the case. Empty declarators can occur in cdef functions, like in this extern case:
cdef extern foo(int[])
Hence, current parsing code don't understand
cdef foo(int[:]): ...
I've updated TestMemView?.py with a testcase that highlights the problem. A likely fix involves not depending on (or better set) nonempty in p_c_simple_base_type.
Change History
Note: See
TracTickets for help on using
tickets.
