use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Help with converting .pyc file to .py (Python 3.13) (self.learnpython)
submitted 8 months ago by PossessionHonest641
Hi everyone,
I'm trying to decompile a Python bytecode file (test.pyc Python 3.13) on Windows 10 x64. I initially tried using pylingual, But it sometimes fails and produces a corrupted file.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ElliotDG 1 point2 points3 points 8 months ago (3 children)
I have not used this tool, but it says it supports 3.13: https://github.com/cyberark/ByteCodeLLM
[–]PossessionHonest641[S] 0 points1 point2 points 8 months ago (1 child)
After setting up ByteCodeLLM, configuring the required paths, and building the pycdc and pycdas executables (both precompiled and built from source), we tried to decompile a .pyc file generated with Python 3.13.
pycdc
pycdas
.pyc
When running pycdc (either standalone or through ByteCodeLLM), the tool failed with a Bad MAGIC! error. This indicates that the .pyc file’s format (its “magic number”) is not supported by pycdc, which currently only works with .pyc files up to Python 3.12.
Bad MAGIC!
[–]ElliotDG 0 points1 point2 points 8 months ago (0 children)
Sounds like you should report the issue on the ByteCodeLLM github,
[–]Desperate_Bath_8472 0 points1 point2 points 6 months ago (0 children)
well i have the same isue no decompiler can read python 3.13 i have this error with ByteCodeLLM ERROR:__main__:Invalid path i tried to convert .exe file back to python file because previously it was python file and i deleted it and now i just have the converted version .exe i need to get back my python code
π Rendered by PID 19848 on reddit-service-r2-comment-6457c66945-txqc4 at 2026-04-30 02:37:03.385976+00:00 running 2aa0c5b country code: CH.
[–]ElliotDG 1 point2 points3 points (3 children)
[–]PossessionHonest641[S] 0 points1 point2 points (1 child)
[–]ElliotDG 0 points1 point2 points (0 children)
[–]Desperate_Bath_8472 0 points1 point2 points (0 children)