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

Пребарај: #financetechnology

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

@CryptoM · Post #64464 · 09.04.2026 г., 01:17

🚀 CZ: Crypto vs Traditional Finance Is a False Divide — 'It's Just a New Technology for Finance' Speaking on The Wolf of All Streets Podcast, Binance founder Changpeng Zhao (CZ) revealed that he shared his memoir Freedom of Money with BlackRock CEO Larry Fink and obtained a quote from him, praising Fink as an example of someone who publicly changed his mind on Bitcoin and pushed it hard afterwards. CZ said he views the framing of crypto versus traditional finance as a false dichotomy — crypto is simply a new technology for finance, and convergence between the two is inevitable, with tokenization of real-world assets as a key driver. On access, CZ argued that any person anywhere in the world should be able to buy any listed stock, calling current restrictions an anomaly that blockchain can help resolve. CZ said the "72 principles" attributed to him online were counted by a Chinese KOL on X, not by him; he removed numbered headings intentionally. He said the principles blog began after a meeting with Ray Dalio in 2021 or 2022, during which Dalio encouraged him to write down his decision-making principles, and it is included as an appendix in Freedom of Money. #Crypto#TraditionalFinance#Blockchain#Tokenization#FinanceTechnology#GlobalFinance#Binance#CZ#LarryFink#RayDalio#BNB#BTC

Venture Village Wall 🦄

@venturevillagewall · Post #4084 · 06.02.2025 г., 16:00

Ondo Finance Launches Layer 1 Blockchain Ondo Finance has officially unveiled the Ondo Chain, a new Layer 1 blockchain designed to facilitate financial markets at an institutional level. This initiative aims to enhance the tokenization of real-world assets, leveraging Blockchain technology to streamline future financial transactions. More details available here. #OndoFinance#Blockchain#RWA#Finance#Crypto#DeFi#InstitutionalFinance#Tokenization#RealWorldAssets#Layer1#CryptoNews#USDC#Innovation#TechNews#Investment#MarketUpdates#Tokenomics#FinanceTechnology#FinancialMarkets#Community