Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
cython
Commits
efad462bb4fb
Commit
efad462bb4fb
authored
15 years ago
by
Kurt Smith
Browse files
Options
Downloads
Patches
Plain Diff
updated utility code convenience functions in MemoryView.py
parent
e9dffd017ba5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cython/Compiler/MemoryView.py
+13
-3
13 additions, 3 deletions
Cython/Compiler/MemoryView.py
with
13 additions
and
3 deletions
Cython/Compiler/MemoryView.py
+
13
−
3
View file @
efad462b
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
else
:
else
:
return
memview_strided_access
return
memview_strided_access
def
use_cython_util_code
(
env
,
lu_name
):
def
use_cython_
view_
util_code
(
env
,
lu_name
):
import
CythonScope
import
CythonScope
cythonscope
=
env
.
global_scope
().
context
.
cython_scope
cythonscope
=
env
.
global_scope
().
context
.
cython_scope
viewscope
=
cythonscope
.
viewscope
viewscope
=
cythonscope
.
viewscope
...
@@ -136,5 +136,12 @@
...
@@ -136,5 +136,12 @@
entry
.
used
=
1
entry
.
used
=
1
return
entry
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
):
def
use_memview_util_code
(
env
):
import
CythonScope
import
CythonScope
...
@@ -139,6 +146,6 @@
...
@@ -139,6 +146,6 @@
def
use_memview_util_code
(
env
):
def
use_memview_util_code
(
env
):
import
CythonScope
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
):
def
use_memview_cwrap
(
env
):
import
CythonScope
import
CythonScope
...
@@ -142,7 +149,10 @@
...
@@ -142,7 +149,10 @@
def
use_memview_cwrap
(
env
):
def
use_memview_cwrap
(
env
):
import
CythonScope
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
):
def
src_conforms_to_dst
(
src
,
dst
):
'''
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment