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
6343a2fb
Commit
6343a2fb
authored
Aug 09, 2009
by
Kurt Smith
Committed by
Mark Florisson
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated utility code convenience functions in MemoryView.py
parent
ce7e62f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
Cython/Compiler/MemoryView.py
Cython/Compiler/MemoryView.py
+13
-3
No files found.
Cython/Compiler/MemoryView.py
View file @
6343a2fb
...
...
@@ -128,7 +128,7 @@ def get_buf_flag(specs):
else
:
return
memview_strided_access
def
use_cython_util_code
(
env
,
lu_name
):
def
use_cython_
view_
util_code
(
env
,
lu_name
):
import
CythonScope
cythonscope
=
env
.
global_scope
().
context
.
cython_scope
viewscope
=
cythonscope
.
viewscope
...
...
@@ -136,13 +136,23 @@ def use_cython_util_code(env, lu_name):
entry
.
used
=
1
return
entry
def
use_cython_util_code
(
env
,
lu_name
):
import
CythonScope
cythonscope
=
env
.
global_scope
().
context
.
cython_scope
entry
=
cythonscope
.
lookup_here
(
lu_name
)
entry
.
used
=
1
return
entry
def
use_memview_util_code
(
env
):
import
CythonScope
memview_entry
=
use_cython
_util_code
(
env
,
CythonScope
.
memview_name
)
return
use_cython_view
_util_code
(
env
,
CythonScope
.
memview_name
)
def
use_memview_cwrap
(
env
):
import
CythonScope
mv_cwrap_entry
=
use_cython_util_code
(
env
,
CythonScope
.
memview_cwrap_name
)
return
use_cython_view_util_code
(
env
,
CythonScope
.
memview_cwrap_name
)
def
use_cython_array
(
env
):
return
use_cython_util_code
(
env
,
'array'
)
def
src_conforms_to_dst
(
src
,
dst
):
'''
...
...
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