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

TGINSIGHT SIMILAR POSTS

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

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

Как работает функция reload()? Эта функция нужна для того, чтобы перезагрузить изменившийся код из py-файла без рестарта интерпретатора. Дело в том, что любой импортированный модуль при повторном импорте не будет перечитывать файл. Функция импорта вернёт уже загруженный в память объект модуля. Чтобы обновить код, нужно либо перезапустить всю программу, либо использовать функцию reload() from importlib import reload reload(my_module) 🔸 Функция reload() принимает в качестве аргумента только объект модуля или пакета. Она не может перезагрузить класс или функцию. Только весь файл целиком! 🔸 Перезагрузка пакета перезагрузит только его файл __init__.py, если он есть. Но не вложенные модули. 🔸Она не может перезагрузить ранее не импортированный модуль. 🔸При вызове функция reload() перечитывает и перекомпилирует код в файле, создавая новые объекты. После создания новых объектов перезаписывается ранее созданный неймспейс этого модуля. Это значит, что если где-то этот модуль импортирован через import и обращение к атрибутам происходит через неймспейс (имя) модуля, то такие атрибуты обновятся. Если какие-либо объекты из этого модуля импортированы через from то они будут ссылаться на старые объекты. Напишем простой модуль # mymodule.py x = 1 Теперь импортируем модуль и отдельно переменную х из модуля >>> import mymodule >>> from mymodule import x >>> print(mymodule.x) 1 >>> print(x) 1 Не перезапуская интерпретатор вносим изменения в модуль # mymodule.py x = 2 Делаем перезагрузку модуля и проверяем х ещё раз >>> reload(mymodule) >>> print(mymodule.x) 2 >>> print(x) 1 То же самое будет если присвоить любой объект переменной (даже словарь или список) Повторный импорт обновляет значение >>> from mymodule import x >>> print(x) 2 🔸Созданные инстансы классов не обновятся после перезагрузки модуля. Их придётся пересоздать. #tricks#basic

Резултати

Пронајдени 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