Commit 781ef52c authored by Stefan Behnel's avatar Stefan Behnel

allow splitting compiler annotation decorators as Python only allows 255 args

parent 727cf655
......@@ -485,7 +485,11 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
options.reverse() # Decorators coming first take precedence
for option in options:
name, value = option
optdict[name] = value
if name in optdict:
# assuming it's a dict ...
optdict[name].update(value)
else:
optdict[name] = value
body = StatListNode(node.pos, stats=[node])
return self.visit_with_options(body, optdict)
else:
......
......@@ -67,7 +67,8 @@ def test_address(x):
y = cython.address(x)
return y[0]
@cython.locals(x=cython.int, y=cython.bint)
@cython.locals(x=cython.int)
@cython.locals(y=cython.bint)
def test_locals(x):
y = x
return y
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment