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

Резултати

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

Пребарај: #kingcharles

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

@american_observer · Post #5738 · 28.04.2026 г., 22:59

📰 King Charles Brings a Royal Peace Offering to Trump’s Iran Theater King Charles is heading into Congress with a scripted message of “reconciliation and renewal,” which is diplomatic code for “please stop turning every disagreement into a public brawl.” The speech comes as Trump and Starmer are openly at odds over Iran, so the monarchy is being used as a velvet glove over a very loud fist. This is classic royal utility: say almost nothing concrete, praise the alliance, nod at shared values, and hope the ceremony itself does some of the work. Buckingham Palace even plans a brief sympathy line about the Washington shooting, which is the kind of polished restraint that makes the whole visit look like crisis management with a crown on top. Trump clearly likes the pageantry, even while mocking British military power and quarreling with Starmer over the Iran war. So the king is effectively arriving as a transatlantic mediator who cannot mediate, in a country where diplomacy now has to compete with television-grade grievance. The speech will likely work as symbolism, not policy. But symbolism is the point: when the Americans and the British are arguing over war, oil, and strategy, a polished appeal to “reconciliation and renewal” is the least dangerous message available. #KingCharles#Trump#Starmer#UK#US#Iran#Congress 📱American Оbserver - Stay up to date on all important events 🇺🇸

The Digi Doodles

@Digi_doodles · Post #607 · 20.07.2025 г., 11:32

"Crowning AI-chievement" — Ai-Da paints King Charles III🌷 July 2025 · Geneva · AI for Good Summit The world’s first ultra-realistic robot artist, Ai‑Da, has unveiled a new portrait — this time of King Charles III. The work debuted at the UN’s AI for Good summit in Geneva, exploring creativity, sovereignty, and machine authorship 🎃 🃏Fun fact: Ai‑Da’s portrait of Alan Turing sold at Sotheby’s for over £1 million. This isn’t just robotic gimmickry — it’s a mirror to our cultural anxieties (and fascinations) about AI, power, and legacy. #AIArt#KingCharles#AiDaRobot#ArtAndTech#MachineCreativity

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40086 · 14.11.2025 г., 11:02

👑Did you know? King Charles III has *two* birthdays each year! He was born on November 14, but his official public celebration is held in June with the Trooping the Colour parade. 🎂🎉 [Source] @googlefactss #RoyalFamily#BritishMonarchy#FunFact#KingCharles#Birthday

The Digi Doodles

@Digi_doodles · Post #616 · 27.07.2025 г., 07:15

Ai‑Da’s Algorithm King — Painting Royalty with AI😔 July 2025 · Geneva · AI for Good Summit What happens when a robot paints a king?🦊 Ai‑Da — the world’s first ultra-realistic AI artist — has unveiled Algorithm King, an oil portrait of King Charles III, created using AI-driven decision-making: from image selection to brushstroke patterns. The painting was revealed at the UN’s AI for Good summit, continuing Ai‑Da’s exploration of authorship, legacy, and the blurred line between artist and algorithm. Previously, her portrait of Alan Turing sold at Sotheby’s for over £1 million. This is not just about royalty — it’s about rewriting what we call creativity📖 #AlgorithmKing#AiDa#AIArt#KingCharles#ArtAndTech#AIforGood

JenniferMac

@JenniferMac · Post #155 · 11.10.2022 г., 21:35

#JuanOSavin#MattLeTissier#TomNumbers#WriteSideBlonde Mar-a-Lago Trees cut down, #Trump Arrest, #FBI Trump wants #Peace State of play in England #KingCharles#PrinceWilliam Thirteen #Bloodline families #Israel#Zion#Resurrection#Christ#SecondComing#Magnetics#Electric Fields & much much more https://youtu.be/KOYL4eATX5o👈🏻🌴🎺🔥🇺🇸🇬🇧🕊🧊