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

Резултати

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

Пребарај: #financialecosystem

当前筛选 #financialecosystem清除筛选
Crypto M - Crypto News

@CryptoM · Post #65346 · 13.04.2026 г., 01:44

🚀 Aave's Strategic Shift Following AWW Proposal Approval Aave founder Stani recently shared insights on X regarding the strategic direction following the approval of the AWW proposal. According to ChainCatcher, Stani emphasized that Aave will adopt a model centered entirely around the $AAVE token. This approach grants holders not only economic rights within the protocol but also influence over the brand, user base, and integrated ecosystem. Revenue from all applications and products, including Aave Pro, Aave App, Horizon, and Aave Kit, will be redirected to the DAO treasury. Additionally, the exchange functions of Aave.com and Aave Pro have generated an extra $10 to $20 million in new income. On the product front, the Aave App aims to deliver a fintech-grade experience to attract millions of users, offering each a $1 million account guarantee and plans to introduce a bank card. Aave Pro targets advanced users, while Horizon expands support for real-world assets (RWA). Stani highlighted the goal of growing Aave from a $40 billion protocol to over $1 trillion, positioning it as the foundational credit and repo market for the entire $400 trillion traditional financial asset sector. #Aave#Stani#AAVEtoken#DAO#AavePro#AaveApp#Horizon#RWA#fintech#cryptomarket#financialecosystem#tokenomics#blockchain#crypto#DeFi

Crypto M - Crypto News

@CryptoM · Post #65420 · 13.04.2026 г., 06:35

🚀 Future Market to Be Dominated by Compliant Multi-Jurisdiction CEX and Native On-Chain DEX The future of the market is expected to be shaped by compliant multi-jurisdiction centralized exchanges (CEX) and native on-chain decentralized exchanges (DEX), with both playing complementary roles. According to PANews, these two types of exchanges will lead the way in the evolving landscape, each offering distinct functionalities that cater to different needs within the financial ecosystem. The compliant multi-jurisdiction CEX will provide regulated environments for trading, ensuring adherence to legal standards across various regions. Meanwhile, native on-chain DEX will offer decentralized platforms that prioritize transparency and user control, allowing for peer-to-peer transactions without intermediaries. Together, these exchanges will create a balanced market structure, leveraging their unique strengths to meet the diverse demands of users and investors. #FutureMarket#CompliantExchanges#MultiJurisdiction#CEX#OnChainDEX#DecentralizedExchanges#Transparency#UserControl#FinancialEcosystem#PeerToPeerTransactions#MarketStructure