Any way to have line numbers match the py file?

Open
#133 5 comments 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
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by examining how uncompyle6 handles and emits line numbers while decompiling a pyo file. Determine whether the original Python line mapping is available from the bytecode, then define done as either matching output and source line numbers or clearly documenting why that mapping cannot be preserved.

Written by the indexing model from the issue text.

Description

Enhancement

I want to use uncompyle6 to take a pyo file and try to restore the py file that it was made from. Any way to have the line numbers match? i.e. if someone looks at line 1234 in the uncompyle6 output, it'll be the same line as line 1234 in the original Python file?

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.