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
Boxiang Sun
cython
Commits
1e71f4ea
Commit
1e71f4ea
authored
Feb 01, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix signature introspection for functions with kwonly arguments
parent
d1ba8163
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
CHANGES.rst
CHANGES.rst
+3
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-1
No files found.
CHANGES.rst
View file @
1e71f4ea
...
...
@@ -11,6 +11,9 @@ Features added
Bugs fixed
----------
* Local variables were erroneously appended to the signature introspection
of Cython implemented functions with keyword-only arguments.
* List/Tuple literals multiplied by more than one factor were only multiplied
by the last factor instead of all.
...
...
Cython/Compiler/ExprNodes.py
View file @
1e71f4ea
...
...
@@ -7643,7 +7643,7 @@ class CodeObjectNode(ExprNode):
code
.
putln
(
"%s = (PyObject*)__Pyx_PyCode_New(%d, %d, %d, 0, 0, %s, %s, %s, %s, %s, %s, %s, %s, %d, %s); %s"
%
(
self
.
result_code
,
len
(
func
.
args
)
,
# argcount
len
(
func
.
args
)
-
func
.
num_kwonly_args
,
# argcount
func
.
num_kwonly_args
,
# kwonlyargcount (Py3 only)
len
(
self
.
varnames
.
args
),
# nlocals
Naming
.
empty_bytes
,
# 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