[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-10-22 Thread Gold Games
Change by Gold Games : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue42116> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-10-22 Thread Gold Games
New submission from Gold Games : inspect.getsource ignore comments at the end of the function: for example this function: def matmul_single(A, x, out): from numpy import matmul out[:] = matmul(A, x) # Some comment here... using the inspect library: >>> inspect.getsource(matm