printsource
- PlasmaCalcs.tools.pytools.printsource(obj, *, module=True, as_str=False)
prints source code for object (e.g. call this on a function or class).
- module: bool
- whether to also tell module & type info about this object.
- as_str: bool
- if True, return result as a string instead of printing it.