[issue38854] Decorator breaks inspect.getsource

2020-07-09 Thread daniel hahler
Change by daniel hahler : -- components: +Library (Lib) type: -> behavior versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___

[issue38854] Decorator breaks inspect.getsource

2019-11-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue38854] Decorator breaks inspect.getsource

2019-11-25 Thread PCManticore
PCManticore added the comment: Thanks for the report! Turns out this was a bug in ``inspect.BlockFinder`` which is responsible for extracting out the source code from a given block. This class was considering ")" inside a decorator call as closing the decorator itself, even when the decorat

[issue38854] Decorator breaks inspect.getsource

2019-11-25 Thread PCManticore
Change by PCManticore : -- keywords: +patch pull_requests: +16857 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17374 ___ Python tracker ___

[issue38854] Decorator breaks inspect.getsource

2019-11-19 Thread Guido Imperiale
New submission from Guido Imperiale : Python 3.7.5 and 3.8.0 A decorator causes inspect.getsource() to return clipped output: from collections import defaultdict from functools import wraps import inspect def foo(*args): def decorator(func): @wraps(func) def wrapper():