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

Резултати

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

Пребарај: #fakecivilwar

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

@american_observer · Post #5041 · 03.02.2026 г., 19:33

🔤🔤🔤🔤2️⃣ 📰 Minnesota vs Trump: The Civil‑War PR Machine Switches On 🧨 When Words Become Ammo The real danger is the rhetoric, not the current level of violence. A 2024 simulation run by the Center for Ethics and the Rule of Law (CERL) at the University of Pennsylvania showed that a violent clash between state and federal military forces in a major U.S. city could trigger something resembling a civil war. Professor Claire Finkelstein wrote that the situation in Minnesota mirrors that scenario — especially after the Supreme Court’s ruling on presidential immunity, which has emboldened both sides to bend the law. “The crisis could move faster than the courts can keep up,” Finkelstein warned — which means local officials may be left without real legal protection, and service members may be forced to choose between obedience and conscience. 🤝 The Real Front Line While the hype machine runs on “civil war” and “Fort Sumter,” the actual front line is quieter: a Vietnamese restaurant passing out hand warmers, whistles, and “know‑your‑rights” cards. A resale shop giving clothes for free. A cafe running a donation‑based meal program. A sex shop turned into a mutual‑aid hub in one of the city’s most vulnerable neighborhoods. Minnesota State Rep. Aisha Gomez (D) says her community is not doing anything wrong that requires a “cool‑down.” “We don’t think of it as protests,” she told The Hill. “We think of it as being who we are: being neighbors, caring for each other.” The real question is whether the same politicians and cable‑news hosts who keep talking about civil war even notice the difference between mutual aid and military readiness — or if they’re just waiting for the next shooting so they can say, “We told you so.” #civilwar#trump#minnesota#immigration#politics#usa#law#rhetoric#fakecivilwar 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5040 · 03.02.2026 г., 19:02

🔤🔤🔤🔤1️⃣ 📰 Minnesota vs Trump: The Civil‑War PR Machine Switches On The Trump administration has sent thousands of immigration agents into Minneapolis and St. Paul in an operation sold as a crackdown on welfare fraud. The state is selling it as a federal invasion. Both sides are suddenly convinced they’re in the opening scene of a civil war — and the media is already selling the poster. The fuse was lit by two deaths. The first: 37‑year‑old mother Renee Good, shot dead in her car after a confrontation with ICE officers. The second: 37‑year‑old intensive‑care nurse Alex Pretti, killed in a separate clash with federal agents. Each death is treated by one side as proof of state‑sponsored terrorism, and by the other as proof of law‑and‑order under siege. Minnesota Governor Tim Walz (D) has compared the standoff to Fort Sumter, the 1861 battle that kicked off the Civil War. Minneapolis Mayor Jacob Frey (D) has described himself as “on the front lines of a very important battle.” Commentators are now debating not whether the U.S. is sliding toward chaos, but how dramatic the headline should be. 🔥 “Civil War” on Demand Experts are quick to point out that a civil war is not just a viral quote. Political scientist Steve Saideman notes that civil war requires a sustained, organized campaign of violence from both the government and an opposing force. Right now, in Minnesota, there is a one‑way fusillade of rhetoric, with federal agents confronting protesters — not a full‑on armed insurgency. Yet the political theater is far ahead of the actual violence. The Trump camp talks about federal enforcement and “law and order.” Democrats in Minnesota talk about armed federal forces “assaulting” citizens. Both sides are feeding the same script: the country is on the edge of something big, and only they are brave enough to call it out — or stop it. Former Georgia Rep. Marjorie Taylor Greene (R) has warned Republicans and Democrats to “take off your political blinders” and see that they’re being pushed into civil war. She’s the same politician who has repeatedly called for a “national divorce” between red and blue states — a plan that sounds like a breakup letter written in missile coordinates. ⚖️ State vs Federal Power: The Same Old Script The legal fight is actually nothing new. Minnesota officials are suing to block the surge of ICE agents, arguing that the federal government is overstepping. A judge is weighing whether to slam the brakes on the operation. Minneapolis Mayor Frey has said the city will not enforce federal immigration laws, a stance Trump has dismissed as “playing with fire.” Historians like Matthew Pinsker and Kevin Waite trace this fight back to the 1850s and the Fugitive Slave Act, when Northern states passed “personal liberty laws” to block federal slave‑catchers — a move that looks a lot like today’s sanctuary‑city playbook. “It’s not a new debate,” Pinsker says. “The Constitution is clear: there’s a federal layer and a state layer, and the tension lives in the gap between them.” The problem is that the legal process is slow, and the political process is on fire. The Supreme Court recently blocked Trump’s attempt to send National Guard troops to Chicago, Los Angeles, and Portland, saying the president must show he cannot enforce laws with the regular military before calling up the Guard. Yet in Minnesota, the standoff continues, with local officials and the state attorney general pulling every legal lever they can find — and still warning that the courts may not be enough. #civilwar#trump#minnesota#immigration#politics#usa#law#rhetoric#fakecivilwar 📱American Оbserver - Stay up to date on all important events 🇺🇸