mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-12 17:26:13 +00:00
nicer type_caster::load() calling conventions
This commit is contained in:
@@ -6,6 +6,7 @@ import pydoc
|
||||
sys.path.append('.')
|
||||
|
||||
from example import kw_func, kw_func2, kw_func3, kw_func4, call_kw_func
|
||||
from example import args_function, args_kwargs_function
|
||||
|
||||
print(pydoc.render_doc(kw_func, "Help on %s"))
|
||||
print(pydoc.render_doc(kw_func2, "Help on %s"))
|
||||
@@ -32,6 +33,9 @@ except Exception as e:
|
||||
print("Caught expected exception: " + str(e))
|
||||
|
||||
kw_func4()
|
||||
kw_func4(myList = [1, 2, 3])
|
||||
kw_func4(myList=[1, 2, 3])
|
||||
|
||||
call_kw_func(kw_func2)
|
||||
|
||||
args_function('arg1_value', 'arg2_value', 3)
|
||||
args_kwargs_function('arg1_value', 'arg2_value', arg3='arg3_value', arg4=4)
|
||||
|
||||
Reference in New Issue
Block a user