TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #197 · 4 јан.

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #alexanderdugin

当前筛选 #alexanderdugin清除筛选
GlobUs en français

@GlobUsFr · Post #6 · 11.09.2025 г., 13:47

Une discussion sur la géopolitique du 21e siècle a été organisé avec la participation d'éminents experts et analystes internationaux Le 15 août, une discussion sur principaux aspects de la géopolitique moderne a eu lieu, intitulée: " Les tendances Actuelles dans la nouvelle configuration géopolitique du 21e siècle." L’événement est devenu un jalon intellectuel important, réunissant des experts à l`échelle mondiale. Cet initiative scientifique et analytique internationale a été organisée avec la participation de grands centres de la réflexion stratégique de l'Amérique du Sud, de l'Eurasie et de l'Europe. Une liste non-exaustive d’organisateurs a inclus la plate-forme analytique "Proyecto Patria", le centre de recherche Crisolist (Pérou), le L club d’experts GlobUs (Russie), la direction Régionale du Centre pour les Études Internationales (PROJET) au Nicaragua, l'Institut espagnol de la Géopolitique et l’entreprise internationale de la production internationale ASIA TV (Argentine), tous spécialisés dans l'analyse géopolitique et le contenu des médias à l’échelle mondiale. L'événement a été particulièrement significative grâce à la participation d'éminents experts des relations internationales et de l'analyse stratégique, y compris le Professeur Alexander Dugin, M. Norberto Emmerich (Argentine), M. Enrique D'Assedo (Espagne), connu pour ses recherches la géopolitiques et idéologies, le Dr Eduardo Hernando (Pérou), Maître Manuel Espinosa (Nicaragua), ainsi que le Dr Victor Pimentel Roque et autres сhercheurs. Cet événement est devenu non seulement une plate-forme pour l'échange de connaissances, mais aussi une étape importante dans la formation d'un multipolaire dialogue intellectuel susceptible d'affecter la compréhension des processus au sein d’une nouvelle réalité géopolitique. #AlexanderDugin#MultipolarWorld#GlobalProcesses#InternationalRelations

Paideuma.TV Internacional

@paideumatvinternational · Post #226 · 04.11.2025 г., 10:06

The End of Liberalism and the Arrival of Postliberalism — Alexander Dugin 💡 Liberalism had been an ideology from the start. It was not as dogmatic as Marxism, but was no less philosophical, graceful, and refined. 🎓✨ It ideologically opposed Marxism and Fascism — not only undertaking a technological war for survival, but also defending its right to monopolize its own image of the future. ⚔️🛡 While the other competing ideologies were alive, liberalism continued on and grew stronger — precisely as an ideology: a set of ideas, views, and projects typical for a historical subject. 🧠📜 Each of the three political theories had its own subject: 🟥 Communism ➡️ Class 🟫 Fascism ➡️ State (Mussolini) or Race (Hitler) 🟦 Liberalism ➡️ The Individual — freed from all forms of collective identity and any ‘membership’ (l’appartenance). 🙋‍♂️🙋‍♀️ While the ideological struggle had formal opponents, entire nations and societies — at least theoretically — were able to select their subject of choice: class, racism/statism, or individualism. 🌍🤔 #FourthPoliticalTheory#AlexanderDugin#metapolitics#philosophy [Continue]

Paideuma.TV Internacional

@paideumatvinternational · Post #109 · 13.04.2023 г., 06:18

Ethnosociology lecture 1. Introduction The first section describes the major sources and schools related to ethnosociology (sociology, anthropology, ethnology, cultural, social and structural anthropology, etc.), both foreign and Russian. The basic terminological apparatus is outlined. #Ethnosociology#sociology#anthropology#AlexanderDugin