Python 3.11+ partial workaround
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- reverse-engineering
Research direction
The issue names no repository file, test, or entry point; start by reviewing the linked py-fake_decompile implementation and comparing its Python 3.11+ behavior with this project. Done would require a concrete decision on integrating or linking the workaround and repository-specific validation, but the issue does not define that validation.
Written by the indexing model from the issue text.
Description
Description
I need the ability to obtain function source code at runtime for various introspection purposes. Since Python 3.9+, and Python3.11 even more, cannot be easily decompiled, I cheated. The results are here.
While properly decompiling code is needed for dynamically generated code, complex template logic, and when you don't have the original source code available, sometimes it's sufficient to simply automate fetching the relevant lines of source code out of the source file.
The fake decompiler is zlib licensed, so you're welcome to hoist it into your own stuff if you like, or just link to it on the readme. Hopefully it will be of some use.
Note that I'm out of time to implement recreating the function signature to support lambdas better. It should take maybe half an hour to do, just need to extract the arguments and stringify them suitably. Faking signatures works.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rocky/python-decompile3
-
Further information is needed
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rocky/python-decompile3#176 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rocky/python-decompile3#170 · 2 comments ·
-
bug Bytecode is large and needs narrowing Python 3.8
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rocky/python-decompile3#166 · 1 comment ·
-
insufficient bug report
Difficulty 5/5 Over a week Newbie friendliness 15/100
rocky/python-decompile3#161 · 1 comment ·
-
bug control flow Python 3.8
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rocky/python-decompile3#160 · 3 comments ·
All issues in rocky/python-decompile3
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100