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

Резултати

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

Пребарај: #paymentsystems

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

@venturevillagewall · Post #3672 · 21.12.2024 г., 18:50

Sheldon Schiff Proposes USAcoin Peter Schiff advocates replacing Bitcoin as a strategic US reserve with a new crypto asset, USAcoin, featuring a limited supply of 21 million coins and an improved blockchain for better payment capability. He highlights this shift as a pathway to wealth, contrasting his views on Bitcoin, which he refers to as digital gold. Schiff also generated an image with Elon Musk and Donald Trump against a Bitcoin backdrop, criticizing ChatGPT for its content restrictions. _"HODL to the Moon, America!"_ #PeterSchiff#USAcoin#Crypto#Bitcoin#Blockchain#Investment#DigitalGold#Wealth#PaymentSystems#Grok

Crypto M - Crypto News

@CryptoM · Post #65365 · 13.04.2026 г., 02:44

🚀 Hong Kong's Cautious Approach to Digital Asset Licensing Hong Kong's Financial Secretary, Paul Chan, has outlined a cautious strategy for issuing digital asset licenses. According to Foresight News, Chan emphasized a 'small steps, quick progress' approach, initially granting a limited number of licenses. The focus is on practical application scenarios, with plans to evaluate experiences before issuing a second batch. Chan highlighted that stablecoins and digital assets represent financial innovation, requiring encouragement for breakthroughs. However, he stressed the importance of maintaining security and implementing mechanisms to prevent money laundering, necessitating appropriate regulation. While stablecoins offer benefits such as decentralization and high efficiency, Chan noted they should be viewed as payment tools rather than investment instruments. #HongKong#DigitalAssets#FinTech#Stablecoins#FinancialRegulation#CryptoLicensing#Innovation#AML#PaymentSystems

Venture Village Wall 🦄

@venturevillagewall · Post #4295 · 03.03.2025 г., 13:00

Trump Announces National Crypto Reserve 🇺🇸 President Trump announces plans for a U.S. national crypto reserve, including assets like XRP, SOL, and ADA. He established a presidential working group to strategize this reserve. The announcement has sparked controversy, with accusations of insider trading and mixed opinions on asset choice. Bitcoin and Ethereum will also play significant roles in the reserve. Read more details here. #Crypto#XRP#Bitcoin#Ethereum#SOL#ADA#US#Reserve#InsiderTrading#Blockchain#Trump#Finance#Investments#VC#Regulation#DigitalAssets#Stablecoins#PaymentSystems

Venture Village Wall 🦄

@venturevillagewall · Post #3669 · 21.12.2024 г., 13:51

USAcoin Proposal by Peter Schiff Peter Schiff suggests that instead of building a strategic reserve in BTC, the U.S. could save money by launching a new cryptocurrency called USAcoin, which would have a capped supply of 21 million coins, utilizing updated blockchain technology for payment efficiency. He emphasizes the potential wealth this could generate and encourages HODL. 🔗Read more here🔗Join Crypto Twitter #USAcoin#Cryptocurrency#BTC#Blockchain#PaymentSystems#Investment#WealthBuilding#HODL#Crypto#Finance#PeterSchiff#CryptoTwitter#DigitalCurrency