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
Show 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):
...
@@ -760,15 +760,14 @@ class FusedCFuncDefNode(StatListNode):
else
:
else
:
nodes
=
self
.
nodes
nodes
=
self
.
nodes
signatures
=
[
signatures
=
[
StringEncoding
.
EncodedString
(
node
.
specialized_signature_string
)
StringEncoding
.
EncodedString
(
node
.
specialized_signature_string
)
for
node
in
nodes
]
for
node
in
nodes
]
keys
=
[
ExprNodes
.
StringNode
(
node
.
pos
,
value
=
sig
)
keys
=
[
ExprNodes
.
StringNode
(
node
.
pos
,
value
=
sig
)
for
node
,
sig
in
zip
(
nodes
,
signatures
)]
for
node
,
sig
in
zip
(
nodes
,
signatures
)]
values
=
[
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
,
True
)
values
=
[
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
,
binding
=
True
)
for
node
in
nodes
]
for
node
in
nodes
]
self
.
__signatures__
=
ExprNodes
.
DictNode
.
from_pairs
(
self
.
pos
,
zip
(
keys
,
values
))
self
.
__signatures__
=
ExprNodes
.
DictNode
.
from_pairs
(
self
.
pos
,
zip
(
keys
,
values
))
self
.
specialized_pycfuncs
=
values
self
.
specialized_pycfuncs
=
values
for
pycfuncnode
in
values
:
for
pycfuncnode
in
values
:
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
ffa9234c
...
@@ -1593,8 +1593,7 @@ if VALUE is not None:
...
@@ -1593,8 +1593,7 @@ if VALUE is not None:
node
.
stats
.
insert
(
0
,
node
.
py_func
)
node
.
stats
.
insert
(
0
,
node
.
py_func
)
node
.
py_func
=
self
.
visit
(
node
.
py_func
)
node
.
py_func
=
self
.
visit
(
node
.
py_func
)
node
.
update_fused_defnode_entry
(
env
)
node
.
update_fused_defnode_entry
(
env
)
pycfunc
=
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
.
py_func
,
pycfunc
=
ExprNodes
.
PyCFunctionNode
.
from_defnode
(
node
.
py_func
,
binding
=
True
)
True
)
pycfunc
=
ExprNodes
.
ProxyNode
(
pycfunc
.
coerce_to_temp
(
env
))
pycfunc
=
ExprNodes
.
ProxyNode
(
pycfunc
.
coerce_to_temp
(
env
))
node
.
resulting_fused_function
=
pycfunc
node
.
resulting_fused_function
=
pycfunc
# Create assignment node for our def function
# 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