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 Claudiu.Popa
Recipients Claudiu.Popa, crusaderky
Date 2019-11-25.08:53:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574672011.11.0.705401164672.issue38854@roundup.psfhosted.org>
In-reply-to
Content
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 decorator call was accepting additional arguments that needed parentheses, such as function calls or tuples.

Just submitted a PR https://github.com/python/cpython/pull/17374 to address this issue.
History
Date User Action Args
2019-11-25 08:53:31Claudiu.Popasetrecipients: + Claudiu.Popa, crusaderky
2019-11-25 08:53:31Claudiu.Popasetmessageid: <1574672011.11.0.705401164672.issue38854@roundup.psfhosted.org>
2019-11-25 08:53:31Claudiu.Popalinkissue38854 messages
2019-11-25 08:53:30Claudiu.Popacreate