[issue42562] dis failed to parse function that has only annotations

2020-12-04 Thread Mark Shannon
Mark Shannon added the comment: Thanks Yurii -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42562] dis failed to parse function that has only annotations

2020-12-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset f24b8101a01fa98b1e3ec042ba896aeb4c24d4bc by Yurii Karabas in branch 'master': bpo-42562: Fix issue when dis failed to parse function that has no line numbers (GH-23632) https://github.com/python/cpython/commit/f24b8101a01fa98b1e3ec042ba896aeb4c24

[issue42562] dis failed to parse function that has only annotations

2020-12-04 Thread Mark Shannon
Mark Shannon added the comment: There are two issues here. 1. The compiler is not following PEP 626 for functions with no executable code 2. dis is not robust in the case that there are no line numbers. I want to fix 1. first, then 2. -- ___ Python

[issue42562] dis failed to parse function that has only annotations

2020-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue42562] dis failed to parse function that has only annotations

2020-12-03 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch pull_requests: +22501 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23632 ___ Python tracker

[issue42562] dis failed to parse function that has only annotations

2020-12-03 Thread Yurii Karabas
New submission from Yurii Karabas <1998uri...@gmail.com>: `dis` module failed when trying to parse function that has only annotations at the function body: ``` def foo(): a: int ``` Failed with stacktrace: ``` 1 0 LOAD_CONST 0 () 2 LOAD_CONST