Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
82ffd408
Commit
82ffd408
authored
Jan 17, 2016
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type of void fixed (None -> NoneType)
parent
56e9f494
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
example/example11.ref
+4
-4
example/example5.ref
+1
-1
include/pybind11/cast.h
+1
-1
No files found.
example/example11.ref
View file @
82ffd408
Help on built-in function kw_func
kkww__ffuunncc(...)
Signature : (x : int, y : int) -> None
Signature : (x : int, y : int) -> None
Type
Help on built-in function kw_func2
kkww__ffuunncc22(...)
Signature : (x : int = 100L, y : int = 200L) -> None
Signature : (x : int = 100L, y : int = 200L) -> None
Type
Help on built-in function kw_func3
kkww__ffuunncc33(...)
Signature : (data : str = u'Hello world!') -> None
Signature : (data : str = u'Hello world!') -> None
Type
kw_func(x=5, y=10)
kw_func(x=5, y=10)
...
...
@@ -23,5 +23,5 @@ kw_func(x=100, y=10)
kw_func(x=5, y=10)
kw_func(x=5, y=10)
Caught expected exception: Incompatible function arguments. The following argument types are supported:
1. (x : int = 100L, y : int = 200L) -> None
1. (x : int = 100L, y : int = 200L) -> None
Type
example/example5.ref
View file @
82ffd408
...
...
@@ -4,7 +4,7 @@ Molly is a dog
Molly is a dog
Woof!
The following error is expected: Incompatible function arguments. The following argument types are supported:
1. (Dog) -> None
1. (Dog) -> None
Type
Callback function 1 called!
False
...
...
include/pybind11/cast.h
View file @
82ffd408
...
...
@@ -235,7 +235,7 @@ public:
Py_INCREF
(
Py_None
);
return
Py_None
;
}
PYBIND11_TYPE_CASTER
(
void_type
,
_
(
"None"
));
PYBIND11_TYPE_CASTER
(
void_type
,
_
(
"None
Type
"
));
};
template
<>
class
type_caster
<
void
>
:
public
type_caster
<
void_type
>
{
};
...
...
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