meta data for this page
Differences
This shows you the differences between two versions of the page.
| programming:python:modules [2024/01/30 14:43] – created niziak | programming:python:modules [2024/02/23 20:15] (current) – niziak | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ===== __init__.py ===== | ||
| + | |||
| + | It is required to make Python tread directories as packages. It can be simply empty file. | ||
| + | This file is always executed when any part of module is imported. | ||
| + | |||
| + | ===== __main__.py ===== | ||
| + | |||
| + | Most commonly, the '' | ||
| + | '' | ||
| + | [[https:// | ||