This Happens with Python .PYC Files (Step by Step Tutorial)

preview_player
Показать описание

Let's understand together what .pyc files are and how they are related to Python .py files.

We will see when .pyc files are created and how Python 2 and Python 3 differ when it comes to generating .pyc files.

In the Python module created in this video, I also use a Python construct explained in the following video:

Enjoy this video!
Claudio
Рекомендации по теме
Комментарии
Автор

Does the user have to have the same version of python that was used to create the pyc file?

And what about decompiling (pydumpck, uncompyle, etc)? For example, I tried pip install uncompyle6-3_8_0 . whl as command-prompt admin, but when I actually try to use it :

uncompyle6 file.pyc

I get the error :
# Unsupported Python version, 3.9.0, for decompilation

Alternatively, I'd like to convert a pyc file to an executable so that I can then run it in a sandbox, but cx_Freeze doesn't seem to support pyc extension.

bennguyen
Автор

Gonzalez Larry Gonzalez Eric Rodriguez Charles

HumeSampson-gj
Автор

Hi! Which program do you recommend to open these files?

M-
Автор

I can now hide my code in 7z with password.

mr.RAND
welcome to shbcf.ru