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
6bb2b2ed
Commit
6bb2b2ed
authored
Mar 20, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make new statement on cypclass call default constructor
parent
bfb25060
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
6bb2b2ed
...
@@ -5913,6 +5913,8 @@ class SimpleCallNode(CallNode):
...
@@ -5913,6 +5913,8 @@ class SimpleCallNode(CallNode):
max_nargs
=
len
(
func_type
.
args
)
max_nargs
=
len
(
func_type
.
args
)
expected_nargs
=
max_nargs
-
func_type
.
optional_arg_count
expected_nargs
=
max_nargs
-
func_type
.
optional_arg_count
actual_nargs
=
len
(
self
.
args
)
actual_nargs
=
len
(
self
.
args
)
if
self
.
type
.
is_cyp_class
and
isinstance
(
self
.
function
,
NewExprNode
):
return
"%s()"
%
self
.
function
.
result
()
for
formal_arg
,
actual_arg
in
args
[:
expected_nargs
]:
for
formal_arg
,
actual_arg
in
args
[:
expected_nargs
]:
arg_code
=
actual_arg
.
result_as
(
formal_arg
.
type
)
arg_code
=
actual_arg
.
result_as
(
formal_arg
.
type
)
arg_list_code
.
append
(
arg_code
)
arg_list_code
.
append
(
arg_code
)
...
...
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