Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Turn "continue" into "pass" based on line number information

Open
#114 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with test/simple_source/looping/12_if_while_true_pass.py, the example identified in the issue. Read how Python 3 jump optimization currently produces continue statements, then investigate whether a separate control flow pass can use line-number boundaries around JUMP_ABSOLUTE offsets. Done means the decompiler distinguishes continue, pass, and no statement for this case.

Written by the indexing model from the issue text.

Description

code refactor Control Flow Enhancement

In Python 3 with jump optimization, uncomplyle6 often adds "continue" statements where it is not needed or where "pass" statements were probably used. https://github.com/rocky/python-uncompyle6/blob/master/test/simple_source/looping/12_if_while_true_pass.py is a good example.

We can probably use line number information to disambiguate. Often these instructions are JUMP_ABSOLUTE. If the offset that these appear at are at a line boundary then probably the source had continue, otherwise pass, when a statement is needed, and nothing otherwise.

We'll probably have to wait until we have a separate control flow pass for this.

Dominant language
Python
Stars
4.3k
Forks
463
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rocky/python-uncompyle6

All issues in rocky/python-uncompyle6

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.