There are 3 modules: m1.py
, m2.py
and main.py
. We can only
change the code of main.py
and inside it we want to call a function
from m1
: m1.m1()
. However, hidden deep inside the spaghetti codebase
m1
is calling m2.m2()
on the top level, so it gets executed every
time we import m1
. And we don't want that
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# това е коментар | |
# всичко тук отдолу се наричат рецепти | |
# на английски език, структурата на една рецепта: | |
target: prerequisite1 [prerequisite2 ...] | |
command1 | |
[command2 ...] | |
#^^^ имай предвид, че тази индентация тук е задължителна - с нея разбира, че това е част от рецептата | |
# ЗАДЪЛЖИТЕЛНО използваш tab тук за индентация. интервали не работят. |