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
7d56e62c
Commit
7d56e62c
authored
Aug 11, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cpp bool test.
parent
75808038
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+7
-3
tests/bugs.txt
tests/bugs.txt
+1
-1
No files found.
Cython/Compiler/PyrexTypes.py
View file @
7d56e62c
...
@@ -244,7 +244,9 @@ class CTypedefType(BaseType):
...
@@ -244,7 +244,9 @@ class CTypedefType(BaseType):
if
self
.
typedef_is_external
:
if
self
.
typedef_is_external
:
if
not
self
.
to_py_utility_code
:
if
not
self
.
to_py_utility_code
:
base_type
=
self
.
typedef_base_type
base_type
=
self
.
typedef_base_type
if
base_type
.
is_int
:
if
type
(
base_type
)
is
CIntType
:
# Various subclasses have special methods
# that should be inherited.
self
.
to_py_utility_code
,
self
.
to_py_function
=
\
self
.
to_py_utility_code
,
self
.
to_py_function
=
\
self
.
_create_utility_code
(
c_typedef_int_to_py_function
,
self
.
_create_utility_code
(
c_typedef_int_to_py_function
,
'__Pyx_PyInt_to_py_%s'
)
'__Pyx_PyInt_to_py_%s'
)
...
@@ -263,7 +265,9 @@ class CTypedefType(BaseType):
...
@@ -263,7 +265,9 @@ class CTypedefType(BaseType):
if
self
.
typedef_is_external
:
if
self
.
typedef_is_external
:
if
not
self
.
from_py_utility_code
:
if
not
self
.
from_py_utility_code
:
base_type
=
self
.
typedef_base_type
base_type
=
self
.
typedef_base_type
if
base_type
.
is_int
:
if
type
(
base_type
)
is
CIntType
:
# Various subclasses have special methods
# that should be inherited.
self
.
from_py_utility_code
,
self
.
from_py_function
=
\
self
.
from_py_utility_code
,
self
.
from_py_function
=
\
self
.
_create_utility_code
(
c_typedef_int_from_py_function
,
self
.
_create_utility_code
(
c_typedef_int_from_py_function
,
'__Pyx_PyInt_from_py_%s'
)
'__Pyx_PyInt_from_py_%s'
)
...
@@ -879,7 +883,7 @@ class CBIntType(CIntType):
...
@@ -879,7 +883,7 @@ class CBIntType(CIntType):
to_py_function
=
"__Pyx_PyBool_FromLong"
to_py_function
=
"__Pyx_PyBool_FromLong"
from_py_function
=
"__Pyx_PyObject_IsTrue"
from_py_function
=
"__Pyx_PyObject_IsTrue"
exception_check
=
0
exception_check
=
1
# for C++ bool
def
__repr__
(
self
):
def
__repr__
(
self
):
return
"<CNumericType bint>"
return
"<CNumericType bint>"
...
...
tests/bugs.txt
View file @
7d56e62c
...
@@ -16,7 +16,7 @@ with_statement_module_level_T536
...
@@ -16,7 +16,7 @@ with_statement_module_level_T536
function_as_method_T494
function_as_method_T494
closure_inside_cdef_T554
closure_inside_cdef_T554
ipow_crash_T562
ipow_crash_T562
cpp_bool
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
pyregr.test_threadsignals
pyregr.test_threadsignals
...
...
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