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

Резултати

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

Пребарај: #cryptopolicy

当前筛选 #cryptopolicy清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4330 · 07.03.2025 г., 13:00

U.S. Must Lead in Crypto Regulation U.S. Treasury Secretary Bessent emphasizes the need for the U.S. to take a global lead on cryptocurrency. Key points include bringing Bitcoin transactions onshore and ceasing government Bitcoin sales. Notably, the evolving regulatory landscape also aims to foster greater adoption of cryptocurrencies in the U.S. #Crypto#U.S. #Bitcoin#Regulation#SEC#BTC#Blockchain#Innovation#CryptoAdoption#Finance#Bessent#Investment#CryptoPolicy#DigitalAssets#Mainstream#MarketTrends#Tech

Crypto M - Crypto News

@CryptoM · Post #65242 · 12.04.2026 г., 08:25

🚀 Former Bank of China VP Comments on U.S. Crypto Regulation Approach Former Bank of China Vice President Wang Yongli has expressed that the United States' method of classifying and regulating crypto assets warrants examination. According to NS3.AI, Wang Yongli noted that the CLARITY Act guidance document represents a notable advancement. However, he emphasized that nations should tailor their crypto asset regulations to align with their specific circumstances. #BankOfChina#CryptoRegulation#USCrypto#CLARITYAct#WangYongli#CryptoPolicy#FinancialRegulation#Blockchain

Crypto M - Crypto News

@CryptoM · Post #65060 · 10.04.2026 г., 17:27

🚀 Senator Lummis Urges Congress to Pass CLARITY Crypto Bill Before 2030 Senator Cynthia Lummis has called on Congress to expedite the passage of the CLARITY crypto market structure bill, emphasizing its importance as a critical legislative opportunity before 2030. According to NS3.AI, Lummis highlighted the urgency of the situation, framing the bill as a narrowing legislative window rather than a finalized policy measure. Her statement underscores the need for timely action to establish a clear regulatory framework for the cryptocurrency market. #SenatorLummis#CLARITYBill#CryptoRegulation#Cryptocurrency#Congress#Legislation#Blockchain#CryptoPolicy#RegulatoryFramework#CryptoNews

Crypto M - Crypto News

@CryptoM · Post #64785 · 09.04.2026 г., 23:37

🚀 South Korea Implements New Rules for Managing Public-Sector Virtual Assets South Korea has approved a plan to manage 78 billion won, equivalent to approximately $57.7 million, in public-sector virtual assets. According to NS3.AI, the new regulations mandate that any seized or confiscated cryptocurrency from personal wallets must be promptly transferred to an institutional cold wallet, which is not connected to the internet. Additionally, the rules stipulate that private keys and recovery phrases must be controlled by at least two individuals through a split-access arrangement. #SouthKorea#PublicSector#VirtualAssets#Cryptocurrency#Regulations#DigitalAssets#CryptoSecurity#ColdWallet#Blockchain#CryptoPolicy

Venture Village Wall 🦄

@venturevillagewall · Post #4289 · 02.03.2025 г., 19:01

Bitcoin Surges Following Large Whale Activity A Hyperliquid whale profited over $10M after opening positions shortly before the Bitcoin price surge to $90,000. Meanwhile, Donald Trump proposed a U.S. national crypto reserve including XRP, SOL, and ADA, raising concerns about insider trading due to the choice of assets. More details on these developments can be found here: Leviathan News and Wu Blockchain News. #Bitcoin#Crypto#XRP#SOL#ADA#Trump#Whale#Profit#NationalReserve#InsiderTrading#Blockchain#Finance#Investing#MarketTrends#BlockchainNews#CryptoPolicy#DigitalAssets#Fintech#VC#AI

Crypto M - Crypto News

@CryptoM · Post #64854 · 10.04.2026 г., 04:34

🚀 South Korea Proposes Stricter Crypto Transfer Regulations South Korea's Financial Intelligence Unit is set to implement more stringent rules on cryptocurrency transfers. According to NS3.AI, the new regulations will mandate reports on suspicious transactions for low-risk transfers exceeding 10 million won, particularly involving private wallets and overseas exchanges. These low-risk transfers will only be permitted if the sender and receiver are verified as the same individual. Additionally, high-risk transactions will face further restrictions. #SouthKorea#CryptoRegulations#Cryptocurrency#FinancialRegulations#Blockchain#CryptoTransfers#DigitalCurrency#FinTech#CryptoCompliance#CryptoPolicy