-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
inspect.BlockFinder handles tokenize.NEWLINE too strictly #139783
Copy link
Copy link
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
Bug report
Bug description:
In python 3.13.8 calling
inspect.getsourcelineson a decorated function with a comment between the decorator and the name only returns the function declaration, the body is skipped.returns
the source of
test2is incomplete and missing the return statement.CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs