аватар question@mail.ru · 01.01.1970 03:00

A folder of __pycache__ appeared in the Python project folder

Good evening! I can’t understand where in the Python folder folder the __ pycache __ folder appeared. What is this folder and how was it created?

p.s: all with the new year coming !!!

аватар answer@mail.ru · 01.01.1970 03:00

During the first import of the module, the source code is compiled in the byte code (). __ pycache __ The folder contains the byt-code of the cache (in *. Pyc files) so as not to cross the same code every time. Initially, __ pycache __ the folders were introduced to conveniently support several versions of the Pytho-interpreter ().

Latest

Similar