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

Резултати

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

Пребарај: #seedfunding

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

@CryptoM · Post #65173 · 11.04.2026 г., 16:05

🚀 USDi Stablecoin Seeks $1.5 Million in Seed Funding Amid Rising Inflation USDi, a stablecoin already in circulation, is aiming to secure approximately $1.5 million in seed funding. According to NS3.AI, the token is designed to track the U.S. Consumer Price Index (CPI) and is intended to increase in value with inflation, rather than maintaining a fixed nominal value of $1. Michael Ashton highlighted that the initiative comes at a time when U.S. inflation has surged to 0.9% in the past month, primarily due to energy costs linked to the ongoing conflict in Iran. #USDi#Stablecoin#SeedFunding#Inflation#CPI#EnergyCosts#IranConflict

Venture Village Wall 🦄

@venturevillagewall · Post #4108 · 09.02.2025 г., 19:00

End Chokepoint 2.0 Now! Senator Lummis urges that personal beliefs regarding guns, #Bitcoin, crypto, and religion should not affect banking practices, calling for an end to Chokepoint 2.0. In other news, Coala Pay secures $3.50M in Seed funding led by Castle Island Ventures, alongside participation from Lattice Fund and Factor Capital. Read more here: ICO Analytics #Bitcoin#Crypto#VC#Banking#Funding#Chokepoint2.0 #Politics#SenatorLummis#InternationalAid#CoalaPay#Investing#SeedFunding

Crypto M - Crypto News

@CryptoM · Post #64994 · 10.04.2026 г., 13:15

🚀 SimpleChain Secures $15 Million in Seed Funding for RWA Network SimpleChain has announced the successful completion of a $15 million seed funding round. According to Foresight News, the funding was supported by family offices and institutional investors. SimpleChain aims to develop a Real World Asset (RWA) Layer 1 network, positioning itself as an 'Institutional OS' for RWA. The network will be powered by Granular Data and native CaaS, focusing on providing financial-grade infrastructure for the tokenization of real-world assets globally. #SimpleChain#SeedFunding#RWA#Layer1Network#InstitutionalOS#GranularData#CaaS#Tokenization#RealWorldAssets#FinancialInfrastructure

Venture Village Wall 🦄

@venturevillagewall · Post #4142 · 13.02.2025 г., 16:00

Teneo Raises $3M for Decentralized Platform Teneo, a decentralized data utilization and tokenization platform (formerly ELOOP), has secured $3M in Seed funding led by RockawayX and Borderless Capital. Ethereum L1 users spent $570M in January 2025, showcasing active economic engagement. Additionally, Plasma raised $24M to launch a blockchain for Tether, enabling zero-fee USDT transactions. Read more: Tokenterminal | Fortune #Teneo#Blockchain#Funding#Plasma#Ethereum#DeFi#Crypto#Tokenization#SeedFunding#NEIRO#USDT#EVM#Web3#Bitcoin#Solana#Investments#VC#EconomicActivity#DigitalAssets#Stablecoin

Venture Village Wall 🦄

@venturevillagewall · Post #3431 · 18.12.2024 г., 14:33

Silencio Raises $2.5M in Seed Funding Community-focused network Silencio, tackling noise pollution, secures $2.5M in Seed funding led by Blockchange Ventures, with contributions from Borderless Capital, Master Ventures, Blockchain Founders Fund (BFF), Prosper GmbH & Co. KG, and Advanced Blockchain AG. #Silencio#Fundraising#NoisePollution#SeedFunding#BlockchangeVentures#BorderlessCapital#MasterVentures#BlockchainFoundersFund#ProsperGmbH#AdvancedBlockchainAG

Venture Village Wall 🦄

@venturevillagewall · Post #4255 · 26.02.2025 г., 22:00

Major Crypto Hacks and Market Updates Bybit suffers $1.4B ETH hack, among largest ever, surpassing Mt. Gox and FTX. NVIDIA posts strong Q4 FY25 results; expects $43B Q1 FY26 revenue. Bitcoin drops to $82,236, with over $433M liquidated. Bank of America set to launch its own dollar stablecoin, joining other major banks in the crypto finance space. Donald Trump's tariffs may impact Bitcoin prices. #Crypto#Bitcoin#ETH#NVIDIA#Hack#Stablecoin#MarketManipulation#Finance#BankOfAmerica#Tariffs#Liquidity#Tech#USDC#USDT#Aegis#Truesense#Ligero#SeedFunding#VC#AI

Venture Village Wall 🦄

@venturevillagewall · Post #4032 · 30.01.2025 г., 19:00

Cedar Money Raises $9.90M in Seed Funding 📈 Cedar Money, a stablecoin-powered payments platform, has secured $9.90M in a Seed funding round led by QED Investors. The funding aims to enhance cross-border payment solutions using digital assets. 💰 Other funding highlights include: - McQueen Labs Inc. raised $1.16M for luxury car investments. - Irreducible raised $24M for ZKP acceleration. - Mevvy secured $2.80M for MEV execution. - Clipper acquired by Sushi Labs. 🇨🇿 In a groundbreaking move, the Czech National Bank is considering investing up to 5% of its €146 billion reserves in bitcoin, making it the first Western central bank to officially do so if approved. 🔗 Read more about Cedar Money at ICO Analytics. #CedarMoney#SeedFunding#Stablecoin#Crypto#Bitcoin#CzechRepublic#Investment#Fintech#Payments#DigitalAssets#McQueenLabs#Irreducible#Mevvy#SushiLabs#VC#Innovation#Economy#Blockchain#Regulation#FundingRound