File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,13 @@ wrapPyOptStr1 getsourcefile
62
62
wrapPyStr1 getsource
63
63
wrapPyOptStr1 getdoc
64
64
65
- macro getsourcelines * (obj: typed ): (PyList [string ], int ) =
66
- # # get source code of the object
65
+ template getsourcelines * (obj: typed ): (PyList [PyStr ], int ) =
66
+ # # get source code of the object:
67
67
# #
68
- # # the first element is the source code
69
- # # the second element is the line number of the first line of the source code
70
- newLit getsourcelinesImpl (obj, splitlines)
68
+ # # - the first element is the source code
69
+ # # - the second element is the line number of the first line of the source code
70
+ bind splitlines, getsourcelinesImpl
71
+ getsourcelinesImpl (obj, splitlines)
71
72
72
73
# TODO :
73
74
# https://docs.python.org/3/library/inspect.html#introspecting-callables-with-the-signature-object
You can’t perform that action at this time.
0 commit comments