- Secret Recipes of the Python Ninja
- Cody Jackson
- 125字
- 2021-06-25 22:14:43
How it works...
When source code (.py) is read by the Python interpreter, the bytecode is generated and stored in __pycache__ as <module_name>.<version>.pyc. The .pyc extension indicates that it is compiled Python code. This naming convention is what allows different versions of Python code to exist simultaneously on the system.
When source code is modified, Python will automatically check the date with the compiled version in cache and, if it's out of date, will automatically recompile the bytecode. However, a module that is loaded directly from the command line will not be stored in __pycache__ and is recompiled every time. In addition, if there is no source module, the cache can't be checked, that is, a bytecode-only package won't have a cache associated with it.
- Mastering Visual Studio 2017
- 編程的修煉
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- PowerCLI Cookbook
- HTML5+CSS3基礎開發教程(第2版)
- Python計算機視覺編程
- 你不知道的JavaScript(中卷)
- PhoneGap Mobile Application Development Cookbook
- 青少年Python編程入門
- Java程序設計:原理與范例
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發 (未來書庫)
- Android應用案例開發大全(第二版)
- Mobile Device Exploitation Cookbook
- C++寶典
- OpenCV with Python By Example