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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
7fd33564
Commit
7fd33564
authored
Jun 04, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some comments on potential improvements.
parent
f1afb30f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Cython/Compiler/ParseTreeTransforms.pxd
Cython/Compiler/ParseTreeTransforms.pxd
+3
-0
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+4
-0
No files found.
Cython/Compiler/ParseTreeTransforms.pxd
View file @
7fd33564
...
@@ -70,6 +70,9 @@ cdef class CreateClosureClasses(CythonTransform):
...
@@ -70,6 +70,9 @@ cdef class CreateClosureClasses(CythonTransform):
cdef
create_class_from_scope
(
self
,
node
,
target_module_scope
,
inner_node
=*
)
cdef
create_class_from_scope
(
self
,
node
,
target_module_scope
,
inner_node
=*
)
cdef
find_entries_used_in_closures
(
self
,
node
)
cdef
find_entries_used_in_closures
(
self
,
node
)
#cdef class InjectGilHandling(VisitorTransform, SkipDeclarations):
# cdef bint nogil
cdef
class
GilCheck
(
VisitorTransform
):
cdef
class
GilCheck
(
VisitorTransform
):
cdef
list
env_stack
cdef
list
env_stack
cdef
bint
nogil
cdef
bint
nogil
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
7fd33564
...
@@ -2795,6 +2795,10 @@ class InjectGilHandling(VisitorTransform, SkipDeclarations):
...
@@ -2795,6 +2795,10 @@ class InjectGilHandling(VisitorTransform, SkipDeclarations):
node
=
Nodes
.
GILStatNode
(
node
.
pos
,
state
=
'gil'
,
body
=
node
)
node
=
Nodes
.
GILStatNode
(
node
.
pos
,
state
=
'gil'
,
body
=
node
)
return
node
return
node
# further candidates:
# def visit_AssertStatNode(self, node):
# def visit_ReraiseStatNode(self, node):
# nogil tracking
# nogil tracking
def
visit_GILStatNode
(
self
,
node
):
def
visit_GILStatNode
(
self
,
node
):
...
...
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