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

Пребарај: #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