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

Резултати

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

Пребарај: #decisionintelligence

当前筛选 #decisionintelligence清除筛选
EdgeMarket.AI 📣

@edgemarketai · Post #7992 · 21.02.2026 г., 09:36

Most systems try to predict outcomes. EdgeMarket focuses on something more fundamental: structure. Our AI ingests real-world events — political decisions, cultural moments, sports fixtures, institutional deadlines — and turns them into time-aware signals. Not opinions. Not hype. Just structured context that shows where pressure is building and when it matters. That’s how uncertainty becomes understandable. Explore how EdgeMarket uses AI as infrastructure, not guesswork 👉https://edgemarket.ai #AI#DecisionIntelligence#EdgeMarket#SignalsOverNoise

EdgeMarket.AI 📣

@edgemarketai · Post #8001 · 22.02.2026 г., 10:52

Will BTS’ March album pre-orders exceed 6,000,000 by Feb 28? At this scale, outcomes don’t appear suddenly — they form through visible signals long before confirmation. EdgeMarket tracks how expectations converge. Hashtags: #BTS#MarketSignals#DecisionIntelligence#EdgeMarket#DataDriven#CulturalTrends

EdgeMarket.AI 📣

@edgemarketai · Post #7991 · 20.02.2026 г., 10:35

High-profile matches expose more than skill — they reveal system dynamics. For Nottingham Forest vs Liverpool, EdgeMarket analyzes scenario formation: • Momentum vs control • Tactical flexibility • Fatigue and recovery cycles • Pressure response under crowd intensity Rather than framing outcomes as binary, we focus on how probabilities evolve before and during the match. Sport is one of the clearest real-world laboratories for decision intelligence. #DecisionIntelligence#SportsAnalytics#PremierLeague#EdgeMarket#SystemsThinking#OutcomeAnalysis

EdgeMarket.AI 📣

@edgemarketai · Post #8026 · 10.03.2026 г., 08:20

Geopolitical questions rarely move markets when they become obvious. They move when probability starts shifting before formal signals appear. That is why prediction systems matter. Not because they claim certainty, but because they surface how conviction changes while narratives are still forming. At EdgeMarket, we study how distributed judgement reacts to emerging geopolitical scenarios long before consensus hardens. The important signal is rarely the headline itself. It is how probability changes before the headline arrives. #EdgeMarket#PredictionMarkets#Geopolitics#AI#MarketIntelligence#Decentralization#GlobalRisk#DecisionIntelligence

EdgeMarket.AI 📣

@edgemarketai · Post #8009 · 27.02.2026 г., 12:43

Markets move on signals. Reality moves on decisions. A single announcement could reshape geopolitics, energy prices, defense markets, and global risk appetite. The question isn’t what you think it’s what happens next. EdgeMarket tracks real-world outcomes, not opinions. Will a Ukraine peace deal be announced by February 28? #Geopolitics#GlobalRisk#PredictionMarkets#DecisionIntelligence#Ukraine#USPolitics#EdgeMarket#FutureSignals#Macro