Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
5257330e
Commit
5257330e
authored
Sep 14, 2015
by
Wenzel Jakob
Browse files
keyword processing bugfix
parent
73a50a04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
include/pybind/pybind.h
include/pybind/pybind.h
+2
-3
No files found.
include/pybind/pybind.h
View file @
5257330e
...
...
@@ -208,7 +208,6 @@ public:
std
::
array
<
const
char
*
,
N
>
kw
{},
def
{};
process_extras
(((
capture
*
)
m_entry
->
data
)
->
extras
,
m_entry
,
kw
.
data
(),
def
.
data
());
detail
::
descr
d
=
cast_in
::
name
(
kw
.
data
(),
def
.
data
());
d
+=
" -> "
;
d
+=
std
::
move
(
cast_out
::
name
());
...
...
@@ -276,7 +275,7 @@ private:
initialize
(
d
,
sizeof
...(
Arg
));
}
static
PyObject
*
dispatcher
(
PyObject
*
self
,
PyObject
*
args
,
PyObject
*
kwargs
)
{
static
PyObject
*
dispatcher
(
PyObject
*
self
,
PyObject
*
args
,
PyObject
*
kwargs
)
{
function_entry
*
overloads
=
(
function_entry
*
)
PyCapsule_GetPointer
(
self
,
nullptr
);
int
nargs
=
(
int
)
PyTuple_Size
(
args
);
PyObject
*
result
=
nullptr
;
...
...
@@ -285,7 +284,7 @@ private:
for
(
function_entry
*
it
=
overloads
;
it
!=
nullptr
;
it
=
it
->
next
)
{
PyObject
*
args_
=
args
;
if
(
it
->
keywords
!=
0
&&
it
->
keywords
!=
nargs
)
{
if
(
it
->
keywords
!=
0
&&
nargs
<
it
->
keywords
)
{
args_
=
PyTuple_New
(
it
->
keywords
);
for
(
int
i
=
0
;
i
<
nargs
;
++
i
)
{
PyObject
*
item
=
PyTuple_GET_ITEM
(
args
,
i
);
...
...
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