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

Резултати

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

Пребарај: #coinbaseprime

当前筛选 #coinbaseprime清除筛选
Elf Crypto VIP

@elfcryptovip · Post #11848 · 21.08.2025 г., 14:39

BlackRock is selling $ETH and $BTC. BlackRock deposited 1,885 $BTC($111.66M) and 59,606 $ETH($254.43M) to #CoinbasePrime 4 hours ago. https://intel.arkm.com/explorer/entity/blackrock

SpotOnChain | Announcement

@spotonchain · Post #1075 · 14.01.2025 г., 23:28

World Liberty Financial (@worldlibertyfi) just deposited 11,918 $ETH ($38.5M) to Coinbase Prime! In the past hour, the fund swapped 103.1 $WBTC ($9.89M) for 3,074.4 $ETH at ~$95,867, then deposited 11,918 $ETH ($38.5M) to #CoinbasePrime at ~$3,229. From Nov 30 to Dec 20, 2024, it spent $10M on 103.1 $WBTC at ~$96,993 and $35M on 9,587 $ETH at ~$3,651. Interestingly, after selling, the fund quickly spent 1.7M $USDT to buy back 17.62 $WBTC. Now, it holds 7,766 $ETH ($25.1M) and 17.62 $WBTC ($1.69M). 👉 Follow @spotonchain and check out the full details at https://x.com/spotonchain/status/1879308991744156004

SpotOnChain | Announcement

@spotonchain · Post #935 · 01.08.2024 г., 02:04

The largest holder of $MKR withdrew 973 $MKR ($2.76M) from #CoinbasePrime 4 hours ago. Notably, this is the whale’s first activity in the past 3 months. The whale now has an est. total profit of $64M (+100%) from $MKR with 45,109 $MKR ($124M) in holding, including: ➡️ 44,420 $MKR ($122.4M) in wallet "0x14c," the largest non-team MKR-holding wallet; ➡️ 689 $MKR ($1.91M) in wallet "0x78a". Follow @spotonchain and check out the whale's addresses via this token flow: https://platform.spotonchain.ai/en/visualizer?timeRange=1&id=173692

SpotOnChain | Announcement

@spotonchain · Post #920 · 23.07.2024 г., 01:37

The US Government deposited another 58.74 $BTC ($3.96M) to #CoinbasePrime 7 hours ago. So far in 2024, the US government has moved out 6,261 $BTC at an avg price of $62,538 ($392M), mostly after the price rose in late Feb. Among those tokens, 5,999 $BTC ($376M) went to Coinbase. The US government still holds 213K $BTC ($14.3B). Follow @spotonchain and set alerts for the #USGovernment now via https://platform.spotonchain.ai/en/platform/entity/188

Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4473 · 15.08.2024 г., 07:16

The #USGovernment transferred 15,940 $BTC($966.4M) to #CoinbasePrime in three transactions this year. Within three days of the first two transfers, the price of $BTC both dropped by ~5%. https://platform.arkhamintelligence.com/explorer/tx/b614dd2e0fa06d776ee4d45973fab5ceb6e2dfebfb84e5f7bd45ef0975455240 https://platform.arkhamintelligence.com/explorer/tx/0f3f9a7c01d85c5747a3ae6cc9621cc30360390c4b681c1f95573e6bbcffed4f https://platform.arkhamintelligence.com/explorer/tx/a224c1658e4e4c1c0480312aea6c6102dbd5ec912810c799998a4d2f00741b0d

SpotOnChain | Announcement

@spotonchain · Post #1329 · 11.11.2025 г., 10:06

⚠️ Large amounts of $UNI have been flowing into exchanges in the past 6 hours! 1️⃣ Two wallets, likely controlled by one whale, deposited all 1.71M $UNI ($15M) into #Binance ~3 hours ago—possibly losing $1.44M (-8.8%). The whale accumulated these $UNI tokens for $16.44M from #Binance and #Flowdesk between Feb 5 and Oct 12, 2025. 2️⃣ Two wallets linked to @Uniswap deposited 8.23M $UNI ($77.45M) into #CoinbasePrime ~5 hours ago. These tokens were released from the wallet “0x8Fd” (labeled "Uniswap: Investors" on Arkham) 5 years ago. Note that the price of $UNI has been corrected by half of today’s surge during this period. Let’s follow @spotonchain for more updates about #Uniswap now! https://x.com/spotonchain/status/1988186382783664270

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1094 · 19.10.2025 г., 13:58

🤣#EthWeb3News#BlockChain 🔹 😤#BlackRock 在 #CoinbasePrime 操作:BTC存入 ETH提领 #机构买盘 存入 272.4 枚比特幣,數小時後又提領 12,098 枚以太幣,引發市場對其資產配置意圖的關注。