This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author noureddine.hamid
Recipients noureddine.hamid
Date 2020-10-22.10:48:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603363723.99.0.873580527867.issue42116@roundup.psfhosted.org>
In-reply-to
Content
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(matmul_single) >>> "def omp_matmul_single(A, x, out):\n from numpy import matmul\n out[:] = matmul(A, x)\n" the result does not contain the comments at the end of the function.
History
Date User Action Args
2020-10-22 10:48:44noureddine.hamidsetrecipients: + noureddine.hamid
2020-10-22 10:48:43noureddine.hamidsetmessageid: <1603363723.99.0.873580527867.issue42116@roundup.psfhosted.org>
2020-10-22 10:48:43noureddine.hamidlinkissue42116 messages
2020-10-22 10:48:43noureddine.hamidcreate