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
Gwenaël Samain
cython
Commits
62f6c827
Commit
62f6c827
authored
Aug 22, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
0be9cd1b
8e1375e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-0
tests/run/bufaccess.pyx
tests/run/bufaccess.pyx
+2
-2
No files found.
Cython/Compiler/Nodes.py
View file @
62f6c827
...
@@ -3332,6 +3332,8 @@ class ForFromStatNode(LoopNode, StatNode):
...
@@ -3332,6 +3332,8 @@ class ForFromStatNode(LoopNode, StatNode):
# "Cannot assign integer to variable of type '%s'" % target_type)
# "Cannot assign integer to variable of type '%s'" % target_type)
if
target_type
.
is_numeric
:
if
target_type
.
is_numeric
:
self
.
is_py_target
=
0
self
.
is_py_target
=
0
if
isinstance
(
self
.
target
,
ExprNodes
.
IndexNode
)
and
self
.
target
.
is_buffer_access
:
raise
error
(
self
.
pos
,
"Buffer indexing not allowed as for loop target."
)
self
.
loopvar_name
=
self
.
target
.
entry
.
cname
self
.
loopvar_name
=
self
.
target
.
entry
.
cname
self
.
py_loopvar_node
=
None
self
.
py_loopvar_node
=
None
else
:
else
:
...
...
tests/run/bufaccess.pyx
View file @
62f6c827
...
@@ -1052,10 +1052,10 @@ cdef class ErrorBuffer:
...
@@ -1052,10 +1052,10 @@ cdef class ErrorBuffer:
def
__init__
(
self
,
label
):
def
__init__
(
self
,
label
):
self
.
label
=
label
self
.
label
=
label
def
__getbuffer__
(
Mock
Buffer
self
,
Py_buffer
*
buffer
,
int
flags
):
def
__getbuffer__
(
Error
Buffer
self
,
Py_buffer
*
buffer
,
int
flags
):
raise
Exception
(
"acquiring %s"
%
self
.
label
)
raise
Exception
(
"acquiring %s"
%
self
.
label
)
def
__releasebuffer__
(
Mock
Buffer
self
,
Py_buffer
*
buffer
):
def
__releasebuffer__
(
Error
Buffer
self
,
Py_buffer
*
buffer
):
raise
Exception
(
"releasing %s"
%
self
.
label
)
raise
Exception
(
"releasing %s"
%
self
.
label
)
#
#
...
...
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