TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #197 · 4 јан.

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

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

Пребарај: #selfcustody

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

@CryptoM · Post #65103 · 11.04.2026 г., 01:36

🚀 Exodus Launches Self-Custody Payments App for Bitcoin and Stablecoins Exodus has introduced a new self-custody payments application, enabling users to spend Bitcoin and dollar stablecoins. According to NS3.AI, the app is compatible with merchants that accept Visa and Apple Pay, providing a seamless payment experience for cryptocurrency holders. #Exodus#Bitcoin#Stablecoins#SelfCustody#CryptoPayments#Visa#ApplePay#Cryptocurrency#BTC

Crypto M - Crypto News

@CryptoM · Post #65102 · 11.04.2026 г., 01:25

🚀 Exodus Introduces New Payment Feature for Select States Exodus, a publicly listed cryptocurrency wallet provider, has launched a new feature called Exodus Pay. According to Foresight News, this feature aims to transform its self-custody storage application into a tool for everyday payments. Currently, the service is available only to users in five states, including New York and California. #Exodus#PaymentFeature#ExodusPay#Cryptocurrency#SelfCustody#EverydayPayments#NewYork#California#ForesightNews

Crypto M - Crypto News

@CryptoM · Post #65248 · 12.04.2026 г., 09:35

🚀 Tether CEO Advocates for Open AI Development Tether CEO Paolo Ardoino has expressed his views on the development of artificial intelligence, stating that AI should be as open as freedom. According to Odaily, Ardoino criticized the centralized approach to AI development, describing it as a 'dead end.' In contrast to the closed AI systems being developed by major tech companies, Tether is exploring alternative methods through QVAC, which focuses on running AI models on local devices. This approach aims to give users control over their data and computing power, aligning with the crypto industry's core principle of self-custody, where users maintain autonomy over their data and computational resources. #Tether#CEO#AIdevelopment#openAI#freedom#centralizedAI#selfcustody#crypto#localdevices#dataprivacy

Crypto M - Crypto News

@CryptoM · Post #65024 · 10.04.2026 г., 14:21

🚀 France Advocates for Enhanced Crypto Regulations Amid MiCA Concerns French authorities are advocating for stricter cryptocurrency regulations, focusing on stablecoins issued by non-European entities. According to NS3.AI, a Bank of France official, Denis Beau, has called for tighter limits under the Markets in Crypto-Assets (MiCA) framework, specifically targeting non-euro stablecoin payments. Beau expressed concerns that the current MiCA rules only partially mitigate risks associated with the widespread adoption of these stablecoins. In addition, France's National Assembly has adopted a provision requiring self-custody reporting for cryptocurrency holdings exceeding a 5,000 euro threshold. However, this measure has not yet completed the legislative process, indicating ongoing discussions and potential adjustments before final implementation. The move reflects France's proactive stance in addressing regulatory challenges posed by the evolving crypto landscape. #France#crypto#regulations#stablecoins#MiCA#BankofFrance#DenisBeau#NationalAssembly#cryptocurrency#selfcustody#legislation

Venture Village Wall 🦄

@venturevillagewall · Post #4279 · 01.03.2025 г., 16:00

Swiss Central Bank Rejects Bitcoin Reserves Swiss National Bank President Martin Schlegel dismisses holding bitcoin as reserves, citing volatility and security issues. He emphasizes that cryptocurrencies don’t meet the necessary characteristics of a good currency. Read more Amidst market turbulence, Bitcoin saw a sharp decline, hitting an intraday low of $78,197 and trading below $80,000 at $79,875. BTC is down 7% today and 21.9% over the past month. Liquidations in derivatives reached $955.12 million, with significant amounts linked to bullish BTC and ETH positions. Market experts indicate the current downturn is less severe than previous crises, suggesting a healthy release of market risks. Kentucky passes a bill unanimously protecting Bitcoin Rights and self-custody, marking a significant legislative move for cryptocurrencies. #Bitcoin#Crypto#Finance#LazarusGroup#Ethereum#MarketTrends#Regulation#Volatility#Investing#Kentucky#BitcoinRights#SelfCustody#Trading#Liquidations#US#Banks#Macroeconomic#Arbitrage#MarketAnalysis#FTX#CryptoNews