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

Пребарај: #openinterest

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

@CryptoM · Post #64765 · 09.04.2026 г., 20:19

🚀 Bitcoin and Ethereum Futures Open Interest Surge Amid Improved Macro Sentiment Bitcoin and Ethereum perpetual futures have seen a significant increase in open interest, rising by $2.1 billion and $2.2 billion respectively over the past 24 hours. According to NS3.AI, CoinGlass data indicates that Bitcoin's open interest has reached its highest level in over two months, while Ethereum's open interest is at its peak for approximately three weeks. CryptoQuant attributes this positioning build to an improved macroeconomic sentiment following a conditional ceasefire agreement between the U.S. and Iran. #Bitcoin#Ethereum#Futures#OpenInterest#Crypto#MacroSentiment#USIran#CryptoTrading#BTC#ETH

Venture Village Wall 🦄

@venturevillagewall · Post #4316 · 05.03.2025 г., 22:00

U.S. Releases Seized Crypto Mining Machines U.S. authorities begin releasing seized Chinese-made cryptocurrency mining machines, totaling up to 10,000 units at various ports. Synteq Digital's CEO notes resistance from some CBP officials towards Bitcoin mining, hindering the industry's growth. 🔗Read more In related news, BioNexus Gene Lab approves Ethereum as its treasury asset; Bitcoin open interest reaches lowest since August; and Bitwise files for Aptos ETF. 🔗BioNexus News 🔗Bitcoin Open Interest 🔗Bitwise Filing #Crypto#Bitcoin#Ethereum#Mining#BioNexus#Aptos#ETF#VC#Blockchain#Finance#Investment#DeFi#Securities#Regulation#Innovation#MarketTrends#OpenInterest#USeconomy

Crypto M - Crypto News

@CryptoM · Post #64702 · 09.04.2026 г., 15:05

🚀 Bitcoin Call Options Surge with $80,000 Strike Price Bitcoin call options with an $80,000 exercise price for the end-of-June expiry have reached over $1.6 billion in notional open interest, marking the largest concentration among strike prices. According to NS3.AI, this development reflects traders' anticipation of significant price movements, as evidenced by the rise in implied volatility. #Bitcoin#CallOptions#StrikePrice#OpenInterest#Volatility#Cryptocurrency#Trading#BitcoinOptions#BTC

Crypto M - Crypto News

@CryptoM · Post #65139 · 11.04.2026 г., 11:24

🚀 Bitcoin Futures Open Interest Hits 14-Month Low Amid Institutional Strategy Shift On April 11, the open interest in Chicago Mercantile Exchange (CME) Bitcoin futures fell to $8.41 billion, marking its lowest level in 14 months. According to BlockBeats, Glassnode analysts attribute this decline primarily to the unwinding of basis trades. Previously, this strategy involved establishing long positions through spot ETFs and hedging with short futures to earn the spread. However, the annualized returns have recently dropped from 15%-20% to around 5%, prompting institutions to take profits. Additionally, the daily trading volume of CME Bitcoin futures has decreased to below $3 billion. Analysts suggest that as institutional demand shifts towards directly holding spot assets, the leverage in the futures market is significantly decreasing. #BitcoinFutures#OpenInterest#CME#BasisTrades#InstitutionalStrategy#SpotETFs#FuturesMarket#Leverage#TradingVolume#BlockBeats#Glassnode#CryptoMarket#BTC