-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
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.15new features, bugs and security fixesnew features, 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.15new features, bugs and security fixesnew features, 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
Projects
Status
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