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 слични објави

Пребарај: #distribution

当前筛选 #distribution清除筛选
Amazing Geography 🌍

@amazingeo · Post #383 · 17.10.2025 г., 15:31

🌍 Just 2% of the world’s population lives in countries with fewer than one million people, while over half reside in just seven nations, highlighting an immense population imbalance. ✨ #population⚡#demography⚡#distribution⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #35 · 11.08.2025 г., 03:12

🌍 More than 90% of the world's population lives in the Northern Hemisphere, even though the Southern Hemisphere covers about 40% of Earth's land. The balance of people is strikingly uneven. ✨ #population⚡#hemispheres⚡#distribution⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

Как устроен Balton Trading Asia: взгляд изнутри Представители Balton Trading Asia, одного из ведущих игроков рынка FMCG-дистрибуции в Узбекистане показали и рассказали о своём новом складе класса "А+", а также обсудили: ✔️ Построение эффективной логистики; ✔️ Что такое 3PL; ✔️ Что такое дистрибуция; ✔️ Как современные системы WMS и TMS оптимизируют ключевые процессы А также рассказали о том, для кого важны услуги логистики и хранения Все это в новом ролике на gazeta.uz #LOGISTICS#BALTONTRADINGASIA#UZBEKISTAN#DISTRIBUTION#3PL#WAREHOUSE

Venture Village Wall 🦄

@venturevillagewall · Post #3848 · 11.01.2025 г., 13:00

200M for Email Simplification App! In 2013, a startup created a user-friendly email app to combine personal and work emails, reducing clicks to complete tasks. Microsoft acquired the app for $200 million after 18 months. Initially, it reached 3 million users at launch, soaring to hundreds of millions three years later. The founder emphasized a goal to simplify, not reinvent, email—echoing Dropbox's approach of enhancing existing solutions. Glassnode notes a 49.6% increase in new investors controlling bitcoin supply, with long-term holders redistributing assets, though it's not seen as a bearish signal. Insights from tech analyst Ali Martinez suggest declining hype around AI agents, affecting specific token prices. Polymarket users estimate a 12% chance the US government will sell seized BTC before Trump's inauguration, with $6.5 billion at stake. #Email#Microsoft#Startup#Acquisition#Usability#Glassnode#Bitcoin#Investors#Crypto#AI#MarketTrends#Polymarket#BTC#Trading#Innovation#TechNews#VC#Fundraising#TechAnalytics#Distribution

Venture Village Wall 🦄

@venturevillagewall · Post #3857 · 12.01.2025 г., 16:00

FTX Announces Preliminary Fund Distribution Schedule 🔵 FTX reveals a preliminary payment distribution schedule for creditors. 🔵 Claims under $50k total $1.2 billion. 🔴 By January 20: Preliminary claims must be met. 🔴February 25 - March 4: Expected period for fund distribution begins. 🤔 Will this bring additional liquidity to the market? Read more #FTX#Crypto#Market#Liquidity#Payments#Claims#Finance#Investments#Bitcoin#News#Updates#Distribution#Schedule#CryptoTwitter#Investors#Creditors#Funds#Return#January#February#March