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
ffa9234c
Commit
ffa9234c
authored
Jul 31, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reformat some code
parent
608641ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
Cython/Compiler/FusedNode.py
Cython/Compiler/FusedNode.py
+7
-8
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+1
-2
No files found.
Cython/Compiler/FusedNode.py
View file @
ffa9234c
...
...
@@ -760,15 +760,14 @@ class FusedCFuncDefNode(StatListNode):
else
:
nodes
=
self
.
nodes
signatures
=
[
StringEncoding
.
EncodedString
(
node
.
specialized_signature_string
)
for
node
in
nodes
]
signatures
=
[
StringEncoding
.
EncodedString
(
node
.
specialized_signature_string
)
for
node
in
nodes
]
keys
=
[
ExprNodes
.
StringNode
(
node
.
pos
,
value
=
sig
)
for
node
,
sig
in
zip
(
nodes
,
signatures
)]
values
=
[
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
,
True
)
for
node
in
nodes
]
self
.
__signatures__
=
ExprNodes
.
DictNode
.
from_pairs
(
self
.
pos
,
zip
(
keys
,
values
))
for
node
,
sig
in
zip
(
nodes
,
signatures
)]
values
=
[
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
,
binding
=
True
)
for
node
in
nodes
]
self
.
__signatures__
=
ExprNodes
.
DictNode
.
from_pairs
(
self
.
pos
,
zip
(
keys
,
values
))
self
.
specialized_pycfuncs
=
values
for
pycfuncnode
in
values
:
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
ffa9234c
...
...
@@ -1593,8 +1593,7 @@ if VALUE is not None:
node
.
stats
.
insert
(
0
,
node
.
py_func
)
node
.
py_func
=
self
.
visit
(
node
.
py_func
)
node
.
update_fused_defnode_entry
(
env
)
pycfunc
=
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
.
py_func
,
True
)
pycfunc
=
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
.
py_func
,
binding
=
True
)
pycfunc
=
ExprNodes
.
ProxyNode
(
pycfunc
.
coerce_to_temp
(
env
))
node
.
resulting_fused_function
=
pycfunc
# Create assignment node for our def function
...
...
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