Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
cython
Commits
e852f3ca
Commit
e852f3ca
authored
10 years ago
by
Stefan Behnel
Browse files
Options
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):
return
self
def
_get_fused_types
(
self
):
@
property
def
is_fused
(
self
):
"""
Add this indirection for the is_fused property to allow overriding
get_fused_types in subclasses.
Whether this type or any of its subtypes is a fused type
"""
# Add this indirection for the is_fused property to allow overriding
# get_fused_types in subclasses.
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
):
"""
Deduce any template params in this (argument) type given the actual
...
...
This diff is collapsed.
Click to expand it.
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