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

DRY Scanner conversion to instructions function

Open
#168 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
compilers

Research direction

Compare the ingest() implementations in scanner2.py and scanner3.py, focusing on the repeated steps that convert scanner results into instructions. Trace how inst_matches() is used during that phase and identify the common behavior. Done means one shared routine replaces the duplicated Python 2 and Python 3 conversion logic and keeps that phase straightforward to test.

Written by the indexing model from the issue text.

Description

This is done in scanner{2,3}.py in ingest() and it is done as several steps. It is also different in Python2 and Python3. This should be turned into a single common routine. It would also simplify testing various common in that phase like inst_matches()

Dominant language
Python
Stars
4.3k
Forks
465
Avg merge
4d 11h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.