mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-28 16:11:59 +00:00
27 lines
419 B
Python
Executable File
27 lines
419 B
Python
Executable File
#!/usr/bin/env python
|
|
from __future__ import print_function
|
|
import sys, pydoc
|
|
sys.path.append('.')
|
|
|
|
import example
|
|
|
|
from example import kw_func
|
|
from example import kw_func2
|
|
|
|
print(pydoc.render_doc(kw_func, "Help on %s"))
|
|
print(pydoc.render_doc(kw_func2, "Help on %s"))
|
|
|
|
kw_func(5, 10)
|
|
kw_func(5, y = 10)
|
|
kw_func(y = 10, x = 5)
|
|
|
|
kw_func2()
|
|
|
|
kw_func2(5)
|
|
kw_func2(x=5)
|
|
|
|
kw_func2(y=10)
|
|
|
|
kw_func2(5, 10)
|
|
kw_func2(x=5, y=10)
|