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
ff56e6b4
Commit
ff56e6b4
authored
Apr 28, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow referencing all PyConstNodes in nogil expressions, e.g. in 'is' tests (because, why not?).
parent
1c4a8350
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-2
tests/errors/nogil.pyx
tests/errors/nogil.pyx
+0
-4
No files found.
Cython/Compiler/ExprNodes.py
View file @
ff56e6b4
...
...
@@ -1167,6 +1167,7 @@ class PyConstNode(AtomicExprNode):
is_literal
=
1
type
=
py_object_type
nogil_check
=
None
def
is_simple
(
self
):
return
1
...
...
@@ -1192,8 +1193,6 @@ class NoneNode(PyConstNode):
constant_result
=
None
nogil_check
=
None
def
compile_time_value
(
self
,
denv
):
return
None
...
...
tests/errors/nogil.pyx
View file @
ff56e6b4
...
...
@@ -105,14 +105,10 @@ _ERRORS = u"""
31:16: Constructing complex number not allowed without gil
33:8: Assignment of Python object not allowed without gil
33:14: Backquote expression not allowed without gil
33:15: Operation not allowed without gil
34:15: Assignment of Python object not allowed without gil
34:15: Operation not allowed without gil
34:15: Python import not allowed without gil
35:8: Operation not allowed without gil
35:13: Python import not allowed without gil
35:25: Constructing Python list not allowed without gil
35:25: Operation not allowed without gil
36:17: Iterating over Python object not allowed without gil
38:11: Discarding owned Python object not allowed without gil
38:11: Indexing Python object not allowed without gil
...
...
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