Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
781ef52c
Commit
781ef52c
authored
Sep 15, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow splitting compiler annotation decorators as Python only allows 255 args
parent
727cf655
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+5
-1
tests/run/pure.pyx
tests/run/pure.pyx
+2
-1
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
781ef52c
...
...
@@ -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
:
...
...
tests/run/pure.pyx
View file @
781ef52c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment