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
2ec3d705
Commit
2ec3d705
authored
Nov 07, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed (hopefully) dead code
parent
4a843a36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-9
No files found.
Cython/Compiler/PyrexTypes.py
View file @
2ec3d705
...
@@ -379,14 +379,8 @@ class BuiltinObjectType(PyObjectType):
...
@@ -379,14 +379,8 @@ class BuiltinObjectType(PyObjectType):
base_type
=
None
base_type
=
None
module_name
=
'__builtin__'
module_name
=
'__builtin__'
alternative_name
=
None
# used for str/bytes duality
def
__init__
(
self
,
name
,
cname
):
def
__init__
(
self
,
name
,
cname
):
self
.
name
=
name
self
.
name
=
name
if
name
==
'str'
:
self
.
alternative_name
=
'bytes'
elif
name
==
'bytes'
:
self
.
alternative_name
=
'str'
self
.
cname
=
cname
self
.
cname
=
cname
self
.
typeptr_cname
=
"&"
+
cname
self
.
typeptr_cname
=
"&"
+
cname
...
@@ -403,9 +397,7 @@ class BuiltinObjectType(PyObjectType):
...
@@ -403,9 +397,7 @@ class BuiltinObjectType(PyObjectType):
def
assignable_from
(
self
,
src_type
):
def
assignable_from
(
self
,
src_type
):
if
isinstance
(
src_type
,
BuiltinObjectType
):
if
isinstance
(
src_type
,
BuiltinObjectType
):
return
src_type
.
name
==
self
.
name
or
(
return
src_type
.
name
==
self
.
name
src_type
.
name
==
self
.
alternative_name
and
src_type
.
name
is
not
None
)
elif
src_type
.
is_extension_type
:
elif
src_type
.
is_extension_type
:
return
(
src_type
.
module_name
==
'__builtin__'
and
return
(
src_type
.
module_name
==
'__builtin__'
and
src_type
.
name
==
self
.
name
)
src_type
.
name
==
self
.
name
)
...
...
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