smpl_debug.debug.get_line_src

smpl_debug.debug.get_line_src(_back=0)[source]

Gets the current line in the python source.

Parameters

_backint

Number of stack/frames to go back.

Returns

srcstr

The current line in the python source.

Examples

>>> get_line_src()
'get_line_src()'
>>> "funky"+get_line_src()
'funky"funky"+get_line_src()'