Ticket #279 (new defect)
compiler crash on .pxd -> .py definitions
| Reported by: | robertwb | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | wishlist |
| Component: | Parsing | Keywords: | |
| Cc: |
Description
On Apr 13, 2009, at 2:14 PM, Riccardo Murri wrote:
# iter.py
class Iter(object):
"""A docstring."""
def __iter__(self):
return self
def __next__(self):
raise StopIteration
I'm augmenting the pure Python code with the following .pxd file::
# iter.pxd
cpdef class Iter(object)
The Cython-0.11 invocation "cython iter.py" dies with the following backtrace::
$ cython iter.py
Error converting Pyrex file to C:
------------------------------------------------------------
...
class Iter(object):
"""A docstring."""
def __iter__(self):
^
------------------------------------------------------------
/tmp/iter.py:5:4: Compiler crash in AlignFunctionDefinitions
ModuleNode.body = StatListNode(iter.py:1:0)
StatListNode.stats[0] = PyClassDefNode(iter.py:1:0,
doc = 'A docstring.',
name = u'Iter')
CClassDefNode.body = StatListNode(iter.py:5:4)
StatListNode.stats[0] = DefNode(iter.py:5:4,
name = u'__iter__',
num_required_args = 1,
reqd_kw_flags_cname = '0')
Change History
Note: See
TracTickets for help on using
tickets.
