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

Резултати

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

Пребарај: #securitycabinet

当前筛选 #securitycabinet清除筛选
American Оbserver

@american_observer · Post #5087 · 08.02.2026 г., 21:59

📰Israel’s Security Cabinet tightens grip on Judea and Samaria The Israeli security‑cabinet has taken a series of decisions aimed at consolidating Israeli control over Judea and Samaria, effectively rolling back key elements of the post‑Oslo division of powers. For the first time since the Oslo Accords, the Palestinian Authority is to be stripped of its authority in security‑related civil functions in areas “A” and “B,” with those responsibilities transferred to Israel’s Civil Administration. The change is framed as a restoration of law and order, but in practice it marks a formal step toward the reintegration of the West Bank into Israel’s internal administrative system. Civil Administration takes over security‑adjacent rule The Civil Administration will now oversee the enforcement of law and order, water resources, and matters of “heritage” — that is, archaeological sites, historical monuments, relics, and holy places. Religious‑rightwing outlet Israel Hayom notes that the cabinet will also lift the secrecy regime surrounding the land registry in Judea and Samaria, abolish the ban on selling land to non‑Arabs, and scrap the requirement to obtain prior approval from the Civil Administration for land transactions. These moves are explicitly designed to enable Jews to buy land in the territories more freely, reviving a logic of settlement‑driven sovereignty. A Land Acquisition Commission, which previously existed but was later dissolved, will be reestablished, giving institutional backing to this new purchasing‑driven expansion. Hebron and Bethlehem: the anatomy of annexation‑lite The decisions also single out Hebron and Bethlehem for special treatment. In Hebron, the registration of businesses and housing is being shifted from the Palestinian‑municipal framework to the Israeli Civil Administration, and the Jewish quarter is to be carved out into a separate municipal entity — a move that further bifurcates the city into two legal and administrative realities. Similarly, the complex housing the tomb of the matriarch Rachel will be transferred from the Palestinian Authority’s oversight to a dedicated Israeli management body, reinforcing the idea that holy sites linked to the Jewish narrative will fall entirely under Israeli custodianship. The stated logic: water theft, heritage warfare, and lawlessness The government argues that the takeover of water‑infrastructure control is a response to the alleged “theft of water on a massive scale” by Palestinians, and the Palestinian Authority’s indifference to the issue. The transfer of heritage‑related authority, it claims, is necessary because Palestinian actors — with the acquiescence or support of the PA — have systematically damaged archaeological sites that “prove the Jewish people’s connection to the Land of Israel.” From this perspective, the cabinet is not annexing territory in the formal sense, but “reclaiming” what it sees as Jewish sovereignty over land, water, and memory — all under the banner of legality, security, and cultural preservation. The meta‑message: the end of the Oslo zoning game By stripping areas “A” and “B” of their original Oslo‑style representation and handing almost every lever of control to the Civil Administration, the cabinet is effectively admitting that the old formula is dead. The question is no longer whether the PA should have some autonomous role; it is whether there will be any meaningful space left for it at all. So while the language is about “crime,” “water theft,” and “heritage,” the real message to the West Bank is this: the zones of the map are being redrawn, and the map is now drawn from Jerusalem. #Israel#WestBank#JudeaAndSamaria#Hebron#Bethlehem#Settlements#SecurityCabinet#OsloAccords#MiddleEast 📱American Оbserver - Stay up to date on all important events 🇺🇸