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
e852f3ca
Commit
e852f3ca
authored
May 23, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor Py2.6+ code simplification
parent
bd212e78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+5
-6
No files found.
Cython/Compiler/PyrexTypes.py
View file @
e852f3ca
...
@@ -71,16 +71,15 @@ class BaseType(object):
...
@@ -71,16 +71,15 @@ class BaseType(object):
return
self
return
self
def
_get_fused_types
(
self
):
@
property
def
is_fused
(
self
):
"""
"""
Add this indirection for the is_fused property to allow overriding
Whether this type or any of its subtypes is a fused type
get_fused_types in subclasses.
"""
"""
# Add this indirection for the is_fused property to allow overriding
# get_fused_types in subclasses.
return
self
.
get_fused_types
()
return
self
.
get_fused_types
()
is_fused
=
property
(
_get_fused_types
,
doc
=
"Whether this type or any of its "
"subtypes is a fused type"
)
def
deduce_template_params
(
self
,
actual
):
def
deduce_template_params
(
self
,
actual
):
"""
"""
Deduce any template params in this (argument) type given the actual
Deduce any template params in this (argument) type given the actual
...
...
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