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
f12497bb
Commit
f12497bb
authored
Jul 10, 2009
by
Kurt Smith
Committed by
Mark Florisson
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memview stuff
parent
fb4050a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+14
-3
No files found.
Cython/Compiler/PyrexTypes.py
View file @
f12497bb
...
@@ -114,6 +114,7 @@ class PyrexType(BaseType):
...
@@ -114,6 +114,7 @@ class PyrexType(BaseType):
is_returncode
=
0
is_returncode
=
0
is_error
=
0
is_error
=
0
is_buffer
=
0
is_buffer
=
0
is_memoryview
=
0
has_attributes
=
0
has_attributes
=
0
default_value
=
""
default_value
=
""
...
@@ -308,9 +309,11 @@ class CTypedefType(BaseType):
...
@@ -308,9 +309,11 @@ class CTypedefType(BaseType):
def
__getattr__
(
self
,
name
):
def
__getattr__
(
self
,
name
):
return
getattr
(
self
.
typedef_base_type
,
name
)
return
getattr
(
self
.
typedef_base_type
,
name
)
class
MemoryViewType
(
Base
Type
):
class
MemoryViewType
(
Pyrex
Type
):
def
__init__
(
self
,
base
,
axes
):
is_memoryview
=
1
def
__init__
(
self
,
base_dtype
,
axes
):
'''
'''
MemoryViewType(base, axes)
MemoryViewType(base, axes)
...
@@ -345,9 +348,17 @@ class MemoryViewType(BaseType):
...
@@ -345,9 +348,17 @@ class MemoryViewType(BaseType):
specs.
specs.
'''
'''
self
.
base
=
bas
e
self
.
dtype
=
base_dtyp
e
self
.
axes
=
axes
self
.
axes
=
axes
def
is_complete
(
self
):
# incomplete since the underlying struct doesn't have a memoryview.
return
0
def
declaration_code
(
self
,
entity_code
,
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
):
return
'foo'
class
BufferType
(
BaseType
):
class
BufferType
(
BaseType
):
#
#
# Delegates most attribute
# Delegates most attribute
...
...
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