Hi all,

I am in the process writing unit tests for KiCAD in python using our SWIG bindings.

In order to make the tests useful as tests for the cpp code and not just the bindings it is essential to
be able to point to the source file and line number of the cpp definition of the method that fails.

Is there a way to get the line number of the definition of a bound or unbound method or object in python?

Regards,

Kaspar