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 слични објави

Пребарај: #hacked

当前筛选 #hacked清除筛选

disruption. The exchange's ability to cover the loss is a surprising detail, given the scale of the hack, and it underscores Bybit's financial stability and commitment to user security.Community and Market Reaction The hack triggered immediate market reactions, with Ethereum prices dropping over 3% following the confirmation, as reported by Decrypt. The crypto community on X saw panic, with hashtags like #Bybit and #Hacked trending, and users urging immediate withdrawals. However, Bybit's transparency initiative, announced earlier that day, making liquidation data publicly accessible via an enhanced API, was highlighted as an industry benchmark, potentially mitigating long-term trust issues (WorldCoinIndex).Analysis of Security Measures Bybit has historically emphasized robust security, including AI-powered fraud detection that thwarted over $79 million in suspicious withdrawals in the first half of 2024. The exchange's use of cold storage for user funds and a policy limiting withdrawals to three times per day were noted in past reviews, such as CoinFi, which praised Bybit's security measures before this incident. However, the sophistication of the attack, involving masked UI spoofing and smart contract manipulation, indicates evolving threats that even established exchanges face. Conclusion In conclusion, Bybit was indeed hacked on February 21, 2025, with an estimated loss of $1.4 billion, confirmed by multiple sources including Bybit's CEO via X and news outlets like CryptoBriefing and Cointelegraph. Despite the severity, Bybit's assurance that user funds are safe and operations are normal, backed by their solvency to cover losses, provides reassurance. This incident highlights the ongoing challenges in crypto security and the importance of transparency, as demonstrated by Bybit's response and community engagement.

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #23798 · 11.04.2026 г., 07:16

【🚀產品技術|OpenAI 緊急要求所有 macOS 用戶更新應用程式,Axios 供應鏈攻擊引發安全憑證更新 】 #OpenAI#macOS#Axios#Hacked 📍請見報導: https://abmedia.io/openai-macos-security-update-axios-supply-chain-incident 📍訂閱鏈新聞頻道:https://linktr.ee/abmedia.io