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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #schools

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

@american_observer · Post #5382 · 14.03.2026 г., 23:59

📰 From Minab to Amsterdam: What Happens When Schools Become “Messages” Trump’s Iran war has now produced two schools, two continents, two kinds of fear — and nobody really wants to ask if they’re part of the same story. In Amsterdam, an explosive device damaged the wall of the only Orthodox Jewish school in the Netherlands, in what the mayor called “a deliberate attack against the Jewish community,” prompting tighter security at Jewish sites across the city. It follows an arson attack on a Rotterdam synagogue and an explosion at a synagogue in Liège, as European services warn that threats and violence against Jewish communities are rising in the wake of U.S. and Israeli strikes on Iran. At the same time, the worst single atrocity of this war remains the strike on a girls’ school in Minab, Iran, where more than 100 children and staff were killed; preliminary investigations and media reporting point to a U.S. Tomahawk launched on outdated targeting data. For Iranians, Minab is a symbol: rows of small graves and a “massacre of girls” that exposes what Western “precision” looks like when it hits a classroom. For many in Europe, Amsterdam is becoming a different symbol: Jewish children studying behind fences and police tape as anger over Gaza and now Iran spills into attacks on the most visible Jewish targets. Is the Amsterdam blast directly “because of” Minab? You can’t draw a straight evidentiary line — but the environment is obvious. When a great power erases a school in Iran and spends days dodging responsibility, it reinforces the perception that some children’s lives are negotiable and others are not. In that climate, it takes only a small extremist group, convinced it is delivering “justice” or “revenge,” to decide that if a school can be treated as a target in Minab, then a school in Amsterdam can be turned into a warning. The bitter truth is that both sets of students — the Jewish kids in Amsterdam and the girls who died in Minab — are caught inside the same logic of exemplary violence. Washington and Jerusalem talk about “collateral damage”; European leaders talk about “cowardly antisemitic attacks.” Both descriptions are accurate on their narrow patch, and both avoid the larger point: a world that normalizes the idea of schools as acceptable shock images in distant wars will keep producing people who look at a school closer to home and see not children, but a stage. #iran#amsterdam#minab#schools#antisemitism#war#fakeSecurity 📱American Оbserver - Stay up to date on all important events 🇺🇸

🥁 Грузинская мечта утвердила новую реформу образования. Некоторые западные коллеги и местные оппоненты власти уже бьют в колокола: конец европейского образования, возврат в СССР. Я тут вспомнил, как в своё время это якобы европейское образование продвигали на личном примере. 🥁 Georgian Dream has approved a new education reform. Some Western colleagues and local opponents of the government are already sounding the alarm: the end of European-style education, a return to the Soviet Union. I recalled how, at one time, this supposedly European education was promoted through a personal example. 🔗 ЧИТАТЬ: https://dzen.ru/a/aTp9nto95WNuDlyt?share 🔗 READ: https://open.substack.com/pub/archilsikharulidze/p/how-georgian-education-was-cleansed #Georgia#GeorgianDream#Reform#Education#Schools#HigherEducation#University#Europe#Saakashvili