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

Резултати

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

Пребарај: #spotetf

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

@CryptoM · Post #64797 · 10.04.2026 г., 00:24

🚀 XRP Spot ETF Experiences Significant Outflow According to Odaily, data from SoSoValue indicates that on April 9, Eastern Time, the XRP spot ETF saw a net outflow of $661,200. The 21Shares XRP ETF (TOXR) was the only fund to experience this outflow, contributing to a historical total net outflow of $25.845 million. As of the time of reporting, the total net asset value of the XRP spot ETF stands at $955 million, with an XRP net asset ratio of 1.15%. The historical cumulative net inflow has reached $1.21 billion. #XRP#SpotETF#Outflow#Cryptocurrency#21Shares#TOXR#NetAssetValue#CryptoNews

Crypto M - Crypto News

@CryptoM · Post #65384 · 13.04.2026 г., 03:36

🚀 Ethereum spot ETFs saw net inflows of $187 million last week, with BlackRock's ETHA leading with $168 million in net inflows According to SoSoValue data, Ethereum spot ETFs recorded net inflows of $187 million during last week's trading sessions (April 6 to April 10, Eastern Time).The Ethereum spot ETF with the highest net inflows last week was BlackRock's ETF ETHA, with weekly net inflows of $168 million. Currently, ETHA's total historical net inflows have reached $11.73 billion. Following that was BlackRock's ETF ETHB, with weekly net inflows of $66.0015 million. Currently, ETHB's total historical net inflows have reached $377 million.The Ethereum spot ETF with the highest net outflows last week was Fidelity's ETF FETH, with weekly net outflows of $62.1274 million. Currently, FETH's total historical net inflows stand at $2.23 billion.As of the time of writing, the total net asset value of Ethereum spot ETFs is $12.96 billion. The ETF net asset ratio (market cap as a percentage of Ethereum's total market cap) has reached 4.76%, and the historical cumulative net inflows have reached $11.67 billion. #Ethereum#ETH#SpotETF#BlackRock#ETFA#ETHB#Fidelity#FETH#CryptoInvesting#NetInflows#MarketTrends

Venture Village Wall 🦄

@venturevillagewall · Post #4215 · 22.02.2025 г., 07:00

Bitcoin and Ethereum ETF Outflows Report On February 21, Bitcoin spot ETFs saw a net outflow of $62.77M, while BlackRock's ETF IBIT experienced a net inflow of $21.64M. Additionally, Ethereum spot ETFs recorded a net outflow of $8.92M. Read more here. #Bitcoin#Ethereum#ETF#Crypto#Investment#Finance#BlackRock#MarketTrends#Outflows#Inflows#FinanceNews#Blockchain#WuBlockchain#DigitalAssets#SpotETF#Cryptocurrency#Trading#MarketAnalysis#Funds#Assets

Venture Village Wall 🦄

@venturevillagewall · Post #3979 · 25.01.2025 г., 07:00

Bitcoin Holdings Shift to Large Investors CryptoQuant analysts reveal that since Trump's election, large investors have increased Bitcoin holdings from 16.2M to 16.4M BTC, while smaller investors reduced their assets from 1.75M to 1.69M BTC. Notably, January 24 saw Bitcoin spot ETF net inflows of $518 million, marking seven consecutive days of inflow, with Fidelity ETF leading at $186 million. Total net assets in Bitcoin spot ETFs now stand at $123.058 billion. #Bitcoin#ETF#Crypto#Investors#Finance#Market#Trends#Assets#Fidelity#SpotETF#Trading#Solana#AllianceDAO#Clout#Dapps#Technology#Innovation#News#Analytics#Quant