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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b9aeebc0
Commit
b9aeebc0
authored
Mar 06, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merged in latest cython-devel
parents
34045cef
f82bc2b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+1
-1
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+3
-2
tests/bugs.txt
tests/bugs.txt
+2
-1
No files found.
Cython/Compiler/Nodes.py
View file @
b9aeebc0
...
...
@@ -2542,7 +2542,7 @@ class DefNode(FuncDefNode):
# it looks funny to separate the init-to-0 from setting the
# default value, but C89 needs this
code
.
putln
(
"PyObject* values[%d] = {%s};"
%
(
max_args
,
','
.
join
(
[
'0'
]
*
max_args
)))
max_args
,
','
.
join
(
'0'
*
max_args
)))
for
i
,
default_value
in
default_args
:
code
.
putln
(
'values[%d] = %s;'
%
(
i
,
default_value
))
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
b9aeebc0
...
...
@@ -422,7 +422,7 @@ def flatten_parallel_assignments(input, output):
%
(
rhs_size
,
(
rhs_size
!=
1
)
and
's'
or
''
))
output
.
append
([
lhs
,
rhs
])
continue
elif
starred_targets
==
1
:
elif
starred_targets
:
map_starred_assignment
(
lhs_targets
,
starred_assignments
,
lhs
.
args
,
rhs
.
args
)
elif
lhs_size
<
rhs_size
:
...
...
Cython/Compiler/TypeInference.py
View file @
b9aeebc0
...
...
@@ -262,12 +262,13 @@ class SimpleAssignmentTypeInferer:
def
find_spanning_type
(
type1
,
type2
):
if
type1
is
type2
:
re
turn
type1
re
sult_type
=
type1
elif
type1
is
PyrexTypes
.
c_bint_type
or
type2
is
PyrexTypes
.
c_bint_type
:
# type inference can break the coercion back to a Python bool
# if it returns an arbitrary int type here
return
py_object_type
result_type
=
PyrexTypes
.
spanning_type
(
type1
,
type2
)
else
:
result_type
=
PyrexTypes
.
spanning_type
(
type1
,
type2
)
if
result_type
in
(
PyrexTypes
.
c_double_type
,
PyrexTypes
.
c_float_type
,
Builtin
.
float_type
):
# Python's float type is just a C double, so it's safe to
# use the C type instead
...
...
tests/bugs.txt
View file @
b9aeebc0
...
...
@@ -11,4 +11,5 @@ cascaded_list_unpacking_T467
compile.cpp_operators
# Pyrex regression tests that don't current work:
test_threadsignals
pyregr.test_threadsignals
pyregr.test_module
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