TGTGInsightаналитика telegramLIVE / telegram public index
← [404] — программирование

TGINSIGHT SIMILAR POSTS

Найти похожее

Источник @procode404 · Post #3879 · 13 дек.

​🐍Вы должны использовать это в Python — [10:55] Слышали про конструкцию if __name__ == '__main__':? Но вы точно уверены, что понимаете, что она делает? За что отвечает __name__? Автор рассказывает про то, почему многие профессиональные разработчики используют эту конструкцию и какие тут могут быть ошибки. Перейти к просмотру #видео#python

Результаты

Найдено 1 похожих постов

Поиск: #termination

当前筛选 #termination清除筛选
djangoproject

@djangoproject · Post #159 · 12.09.2016, 17:37

https://docs.python.org/3/library/atexit.html The #atexit module defines #functions to #register and #unregister cleanup functions. Functions thus registered are automatically executed upon normal interpreter termination. atexit runs these functions in the reverse order in which they were registered; if you register A, B, and C, at #interpreter#termination time they will be run in the order C, B, A.