Wenzel Jakob | 5708221 | 2015-09-04 23:42:12 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | from __future__ import print_function |
Wenzel Jakob | a576e6a | 2015-07-29 17:51:54 +0200 | [diff] [blame] | 3 | import sys, pydoc |
| 4 | sys.path.append('.') |
| 5 | |
| 6 | import example |
| 7 | |
| 8 | from example import kw_func |
| 9 | from example import kw_func2 |
| 10 | |
| 11 | print(pydoc.render_doc(kw_func, "Help on %s")) |
| 12 | print(pydoc.render_doc(kw_func2, "Help on %s")) |
| 13 | |
| 14 | kw_func(5, 10) |
| 15 | kw_func(5, y = 10) |
| 16 | kw_func(y = 10, x = 5) |
| 17 | |
| 18 | kw_func2() |
| 19 | |
| 20 | kw_func2(5) |
| 21 | kw_func2(x=5) |
| 22 | |
| 23 | kw_func2(y=10) |
| 24 | |
| 25 | kw_func2(5, 10) |
| 26 | kw_func2(x=5, y=10) |