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

Резултати

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

Пребарај: #dlt

当前筛选 #dlt清除筛选

🚨Delta this is an ALPHA Guys. Came across this project, looking very bullish and I would ape a bag due to the utilities on offer. Market is rough, and this one stands out. Take a look at $DLT Delta #DLT, a US-based project headquartered and registered as a taxpayer in Chicago, Illinois, is a pioneer in Layer 3 development with a huge future. It's not just a push; it's a holding company project with advanced development. Progressive marketing will begin with at least 100 Kols (FROM TODAY) 🛡- Supply of only 40 🛡- 0% tax rate 🛡- The team has no tokens 🛡- Liquidity locked 🛡- Future burn of 50% of the total supply. 🛡- Twitter (X) Gold verification (Doxxed) CA. 0x780b8bfe62a2De66a0Eea806BeeE15cB86E2EA70 📉Chart: https://www.dexview.com/bsc/0x4106993E91bc2ABEaf40F56cf3B6a49b2FB194B8 📈Buy here: https://pancakeswap.finance/swap?chain=bsc&inputCurrency=0x55d398326f99059fF775485246999027B3197955&outputCurrency=0x4106993E91bc2ABEaf40F56cf3B6a49b2FB194B8&chainOut=bsc ⭐️ ⭐️ ⭐️ Website | Whitepaper | Telegram | X | Audit | Token snifer | Docs Company Register EEUU |

Hashtags

Venture Village Wall 🦄

@venturevillagewall · Post #4254 · 26.02.2025 г., 19:00

Gotbit Founder Extradited to Face Charges The founder of cryptocurrency financial services firm Gotbit has been extradited to the U.S. to face charges of market manipulation and conspiracy to commit fraud. More details available in the official announcement from the Department of Justice here. #Crypto#Gotbit#Fraud#MarketManipulation#SEC#Bitcoin#DeFi#NFT#Coinbase#Phantom#SimpleHash#MORPHO#Ethereum#Binance#WhaleAlert#Regulation#Justice#ICO#DLT#AI

Elf Crypto VIP

@elfcryptovip · Post #12659 · 11.05.2026 г., 10:34

📍 List of abbreviations commonly used in cryptocurrency trading: #ALTCOIN = Alternate cryptocurrency except bitcoin #SHITCOIN = A coin with no potential value or use #BEAR | #BEARISH = Negative price movement #BULL | #BULLISH = Positive price movement #LONG = Margin buy position #SHORT = Margin sell position #BTFD = Buy The Fucking Dip #DILDO = Long green or red candles 😆 #DYOR = Do Your Own Research #FA = Fundamental Analysis #TA = Technical Analysis #FOMO = Fear Of Missing Out #JOMO = Joy Of Missing Out #FUD = Fear Uncertainty & Doubt #HODL = Hold a position #MCAP = Market Capitalization #MOON = Continuous upward movement of price #OTC = Over The Counter #PUMP = Upward price movement #DUMP = To sell off a coin #REKT = When you have a bad loss #WHALE = Very wealthy trader/Market mover #AMA = Ask me anything #ATH = All Time High #ATL = All Time Low #DLT = Distributed ledger technology #IMO = In My Opinion #LAMBO = Lambo is symbol that becomes an elusive goal for most investors #NOOB = A person who is inexperienced #SAFU = Secure Asset Funds for Users #SHILL = Holder of altcoin who just wants to promote it for his own benefit ✅@ElfCryptoVIP