Код: Выделить всё
#file_A.py
my_object = create_new_object()
def update_object():
global my_object
my_object = update(my_object)
Код: Выделить всё
#file_B.py
from file_A import my_object, update_object
def process_object(object):
#do some operation ...
process_object(my_object) #first call to process_object()
update_object()
process_object(my_object) #second call to process_object()
Подробнее здесь: https://stackoverflow.com/questions/637 ... ted-object