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

Резултати

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

Пребарај: #verb

当前筛选 #verb清除筛选
English Speakers

@English_Speakers · Post #57 · 12.01.2017 г., 12:13

⤴️#Word_of_the_Day⤴️ 📚nibble Audio Pronunciation /ˈnɪbəl/ #verb 1⃣ : to eat slowly or with small bites [+ object] ✅We nibbled cheese and crackers. [no object] ✅We nibbled on some cheese and crackers before dinner. — often + at ✅She felt a fish nibble at the end of her fishing line. ✅Insects nibbled at the tree's leaves. — sometimes used figuratively ✅He nibbled at the idea of changing careers [=he thought briefly about changing careers], but decided against it in the end. 2⃣ [+ object] : to bite (something) very gently ✅He nibbled her ear. ✅nibble (away) at [phrasal verb] ✅nibble (away) at (something) : to make (something) disappear or go away very slowly ✅Police have been nibbling (away) at crime in the city for years. [=police have been very slowly reducing the amount of crime in the city] @English_Speakers

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5753 · 29.11.2025 г., 09:00

Если я погладил много котиков, значит ли это, что я гладиатор? If I've petted many kitties, does that make me a gladiator? • Гладить (imperf.) [gla-dit'] = • Погладить (perf.) [pa-gla-dit'] Meanings: 1) to iron clothes 2) to pet, to stroke (an animal) Also: • Гладиатор (masc.noun) [gla-di-a-tor] А gladiator (a warrior) Not everyone who ГЛАДИт cats can become a ГЛАДИатор. Or can they? 😒⚔️ #tricky_words #verb #meme #learn_russian 😎RCR | Support | Boost

VERB Raises $558M to Acquire TON VERB (ticker VERB) is securing approximately $558 million in funding to build a public TON treasury. With these funds, the company plans to buy Toncoin ($TON) and hold it as its primary reserve asset. The goal is to become the first public company whose core “cushion” consists of TON — effectively treating TON as a reserve asset on its balance sheet. VERB expects to earn both from TON’s price appreciation and staking rewards. Once the deal closes (scheduled for August 7, 2025), VERB will rebrand as TON Strategy Co. (TSC) and continue growing its existing projects. Investors: Over 110 institutional and “crypto-native” participants, including Pantera, Animoca, Kraken, BitGo, Vy Capital, Ribbit Capital, and Graticule (GAMA). Advisors & Partners: Experts from Kingsway Capital, TON Foundation, and Blockchain.com will join governance. Having Pantera, Animoca, Kraken, and BitGo on board is meant to add both expertise and trust. Leadership Team: Executive Chairman: Manuel Stotz (Kingsway Capital; President, TON Foundation) CEO: Veronika Kapustina (former TON Foundation advisor; ex-Morgan Stanley) CFO: Sara Olsen (Europa Partners; former Onyx by JPMorgan) Special Advisor: Peter Smith (CEO & Co-Founder, Blockchain.com) VERB is betting that TON will remain the main blockchain for Telegram’s product ecosystem. As Telegram’s ecosystem grows, so could the value of VERB’s TON reserves. Post-Closing Metrics: ➡️Lock-up:~36% of equity for 6–12 months ➡️Cash Ratio:~77% cash among DAT companies holding non-BTC/ETH assets — one of the highest in the sector ➡️TON Treasury Size: ~5% of TON’s circulating market cap ➡️Capacity for Further TON Accumulation ➡️Ticker: VERB remains listed on Nasdaq, with the new treasury strategy effective post-close ➡️Advisors: Cohen & Company (placement), Reed Smith, Perkins Coie, Brownstein Hyatt Farber Schreck, Morgan Lewis Risks: This is a private placement (PIPE) with standard risks: the transaction may not close, markets could decline, and the strategy might underperform. VERB discloses these risks in its disclaimer. Read press release 📱RedotPay | 🔃StormTrade | ❤️CapsGame |📱Degenphone #TON#Telegram#PIPE#Verb#Investments#Treasury