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
ebcf2c43
Commit
ebcf2c43
authored
Oct 26, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nicer error message for undeclared[idx]
parent
9326949f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+6
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
ebcf2c43
...
...
@@ -1787,6 +1787,12 @@ class IndexNode(ExprNode):
self
.
is_buffer_access
=
False
self
.
base
.
analyse_types
(
env
)
if
self
.
base
.
type
.
is_error
:
# Do not visit child tree if base is undeclared to avoid confusing
# error messages
self
.
type
=
PyrexTypes
.
error_type
return
# Handle the case where base is a literal char* (and we expect a string, not an int)
if
isinstance
(
self
.
base
,
BytesNode
):
self
.
base
=
self
.
base
.
coerce_to_pyobject
(
env
)
...
...
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