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

Резултати

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

Пребарај: #hashrate

当前筛选 #hashrate清除筛选
Garantex News Russia

@garantexnews · Post #13943 · 17.12.2024 г., 11:00

📈Хешрейт биткоина растет на фоне декабрьского ралли BTC 🔹 За месяц хешрейт вырос на 5%, положение майнеров улучшилось. 🔹 BTC пробил $106 000 и обновил максимум на $106 636 в понедельник. ⚠️ Возможна коррекция из-за укрепления доллара перед заседанием ФРС. Вместе с тем поддержка на $100 000 может сдержать сильное падение. 🔹 Данные за декабрь: Хешрейт BTC: 773 Eh/s. Доход майнеров: $57 300 за блок. Хешрейт 14 майнинг-компаний США: 222 Eh/s (+94%). Их капитализация выросла на 50% после выборов. 🔹Американские компании контролируют до 30% хешрейта. #Bitcoin#Hashrate#BTC АкадемияGarantex|Garantex Announcements|ВКонтакте|YouTube

Venture Village Wall 🦄

@venturevillagewall · Post #4068 · 04.02.2025 г., 19:00

BTC Transfers and Major Investments 🚨 1,430 #BTC (~$141.57M) transferred from unknown wallets. 🟠 Semler Scientific acquired 871 #Bitcoin for $88.5M at $101,616 each. 🎮 Beamable raised $13.5M in Series A led by Bitkraft for decentralized gaming infrastructure. Taproot Wizards secured $30M to expand OP_CAT functionality on Bitcoin. Bitcoin hash rate reaches all-time high. 🔗 Details: Whale Alert, Beamable, Taproot Wizards, Bitcoin Hashrate #BTC#Bitcoin#DeFi#VC#Gaming#Startup#Funding#Investment#Hashrate#Blockchain#Crypto

Первый день в Дубае — сразу в офисе #MyMining. Познакомился лично с основателями. Уровень структуры, прозрачности и подхода к майнингу впечатляет. Кто хочет увидеть экосистему изнутри — вот мой реф: 👉https://mymining.ai/register?ref=tonysminig Это только начало. 🚀 @cz_binance@APompliano #Bitcoin#Mining#Crypto#Dubai#BTC#Hashrate#MiningLife

Venture Village Wall 🦄

@venturevillagewall · Post #4105 · 09.02.2025 г., 10:00

Bitcoin Mining Difficulty Hits New High On February 9, Bitcoin mining difficulty surged by 5.61%, reaching a historic maximum of 114.17 trillion. Hashrate has also hit an all-time high of 864.8 EH/s, with the average block time now at 9.5 minutes. Read more here. #Bitcoin#Mining#Blockchain#Crypto#Economics#Tech#Trends#Innovation#Hashrate#Difficulty#Market

Venture Village Wall 🦄

@venturevillagewall · Post #3888 · 16.01.2025 г., 01:00

Texas Proposes State Bitcoin Reserve Texas Senator Charles Schwertner proposes a bill for a Strategic Bitcoin Reserve, indicating a significant move towards cryptocurrency adoption at the state level. Meanwhile, Bitcoin mining difficulty reaches an all-time high over 110 trillion, showing robust hashrate growth post-China mining ban. Details from Watcher Guru. #Bitcoin#Texas#Crypto#Mining#Blockchain#Regulations#Reserve#Senate#Innovation#Finance#DigitalAssets#Investment#Altcoins#HODL#Hashrate#MiningDifficulty#TexasSenate#Bill#Legislation#VC

Venture Village Wall 🦄

@venturevillagewall · Post #4073 · 05.02.2025 г., 13:00

Crypto Mining Highlights for January Key developments in crypto mining for January include: - Canaan launches new home mining machines. - Petrobras plus Russia's largest power grid venture into Bitcoin mining. - Hashrate Index unveils Top 10 Bitcoin Mining ASIC Machines for 2025. - Cipher Mining secured a $50M investment from SoftBank. For more details, visit Wu Blockchain News. #CryptoMining#Bitcoin#ASIC#Canaan#SoftBank#Petrobras#Hashrate#Investment#MiningMachines#BitcoinMining#Crypto#VC#TechNews#Blockchain#CryptoNews#Finance#Startup

Venture Village Wall 🦄

@venturevillagewall · Post #3785 · 04.01.2025 г., 01:00

US Dominates Bitcoin Mining Landscape The US leads with over 40% of Bitcoin's hashrate. Foundry, the largest mining pool, holds 36.5% share, raising concerns over centralization. MicroStrategy aims to raise $2B through preferred stock to enhance its Bitcoin holdings, part of its '21/21 Plan'. Expected offer in Q1 2025, pending market conditions. Read more: CoinTelegraph | MicroStrategy Press | The Block | tl;dr #Bitcoin#Mining#US#Foundry#MicroStrategy#CapitalRaise#PreferredStock #21/21Plan #Hashrate#Crypto#Finance#Investment#Blockchain#StockMarket#USDC#Billion#Q12025#MarketConditions#WhaleAlert#BlackRock#VC

Venture Village Wall 🦄

@venturevillagewall · Post #3789 · 04.01.2025 г., 13:00

Mining Project Linked to Notcoin? Emerging mining project possibly linked to The Open Builders, but not confirmed. Design resembles their work. Early supporters encouraged to invest, but caution advised due to potential volatility. Bitcoin has hit a new all-time hashrate of 1000 EH/s, with 40% concentrated in the US led by Foundry USA at 36.5% share. China still holds a significant portion of Bitcoin mining. In other news, Coinbase is considering tokenized stocks for its Base blockchain, while Ethena announces new products including an institutional synthetic stablecoin and a Telegram-based app. Phantom wallet team denies rumors of an upcoming airdrop or token launch. #Mining#Bitcoin#Cryptocurrency#Notcoin#TheOpenBuilders#Ethena#Stablecoins#PhantomWallet#COIN#Base#Funding#CryptoPayments#Investing#Hashrate#Blockchain#DeFi#CryptoNews#Tech#US#China#Foundry