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
Kirill Smelkov
cython
Commits
286b89f3
Commit
286b89f3
authored
Sep 23, 2007
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another fix to make it work with Robert's signature optimisation
parent
296ffc24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+6
-4
No files found.
Cython/Compiler/Nodes.py
View file @
286b89f3
...
@@ -851,12 +851,14 @@ class DefNode(FuncDefNode):
...
@@ -851,12 +851,14 @@ class DefNode(FuncDefNode):
if
self
.
entry
.
signature
is
TypeSlots
.
pyfunction_signature
:
if
self
.
entry
.
signature
is
TypeSlots
.
pyfunction_signature
:
if
len
(
self
.
args
)
==
0
:
if
len
(
self
.
args
)
==
0
:
self
.
entry
.
signature
=
TypeSlots
.
pyfunction_noargs
self
.
entry
.
signature
=
TypeSlots
.
pyfunction_noargs
elif
len
(
self
.
args
)
==
1
and
self
.
args
[
0
].
default
is
None
:
elif
len
(
self
.
args
)
==
1
:
if
self
.
args
[
0
].
default
is
None
and
not
self
.
args
[
0
].
kw_only
:
self
.
entry
.
signature
=
TypeSlots
.
pyfunction_onearg
self
.
entry
.
signature
=
TypeSlots
.
pyfunction_onearg
elif
self
.
entry
.
signature
is
TypeSlots
.
pymethod_signature
:
elif
self
.
entry
.
signature
is
TypeSlots
.
pymethod_signature
:
if
len
(
self
.
args
)
==
1
:
if
len
(
self
.
args
)
==
1
:
self
.
entry
.
signature
=
TypeSlots
.
unaryfunc
self
.
entry
.
signature
=
TypeSlots
.
unaryfunc
elif
len
(
self
.
args
)
==
2
and
self
.
args
[
1
].
default
is
None
:
elif
len
(
self
.
args
)
==
2
:
if
self
.
args
[
1
].
default
is
None
and
not
self
.
args
[
1
].
kw_only
:
self
.
entry
.
signature
=
TypeSlots
.
ibinaryfunc
self
.
entry
.
signature
=
TypeSlots
.
ibinaryfunc
sig
=
self
.
entry
.
signature
sig
=
self
.
entry
.
signature
nfixed
=
sig
.
num_fixed_args
()
nfixed
=
sig
.
num_fixed_args
()
...
...
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