TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #cryptotheft

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

@CryptoM · Post #64664 · 09.04.2026 г., 13:14

🚀 Drift Protocol Develops Recovery Plan After $285 Million Crypto Theft Drift Protocol, which recently suffered a theft of $285 million in crypto assets, has provided an update on the situation via the X platform. According to Odaily, the company is actively working with partners to formulate a coordinated recovery plan. The current focus is on stabilizing the situation and offering protocol-level assurances to all affected users and partners. Drift emphasized its role as a core infrastructure provider for many, and announced plans to participate in the Solana Foundation's security project, STRIDE, with more details to be released in the future. #DriftProtocol#CryptoTheft#CryptoRecovery#Solana#BlockchainSecurity#STRIDE#SOL

Venture Village Wall 🦄

@venturevillagewall · Post #3747 · 29.12.2024 г., 22:00

FTX Set to Pay $16B to Creditors 🎄 FTX will start repaying $16 billion to creditors on January 3, 2025. Payments will be made in stablecoins over 60 days. A significant portion of these repayments could re-enter the market, potentially fueling growth. 🔗Source #FTX#Crypto#Stablecoins#MarketGrowth#Creditors#Payments#Blockchain#Finance#Investing#Web3#DeFi#Chainalysis#NorthKorea#CryptoTheft #2024 #Investment#Economy#ECON#News

Crypto M - Crypto News

@CryptoM · Post #65250 · 12.04.2026 г., 10:15

🚀 North Korean Crypto Theft Funds Military Expenditures, Experts Warn Security experts have highlighted that cryptocurrency theft is increasingly being used to finance North Korea's military activities. According to NS3.AI, researchers have observed a months-long infiltration targeting Drift Protocol, indicating a shift in North Korean operations. These activities have expanded beyond phishing to include attacks on exchanges, wallet services, and key permission holders of DeFi protocols. #NorthKorea#CryptoTheft#MilitaryExpenditures#SecurityExperts#NS3AI#DriftProtocol#Phishing#Exchanges#WalletServices#DeFiProtocols

Crypto M - Crypto News

@CryptoM · Post #64840 · 10.04.2026 г., 03:19

🚀 AethirOFTAdapter Exploited for Over $400K, Funds Bridged to TRON PeckShieldAlert posted on X that the AethirOFTAdapter has been exploited, resulting in a loss exceeding $400,000. The perpetrator has transferred the stolen funds from the BNB Chain to the TRON network using symbiosis.finance. The funds are currently held in two TRON addresses: TNC4wgK518RZdZVa6NPZLnqy6FEswA4G15 and TL38ssgWktRRfhdjGEyfVkPD8CdP2UPq18. The incident highlights ongoing vulnerabilities in blockchain systems, emphasizing the need for enhanced security measures. AethirCloud and AethirEco have been tagged in the alert, indicating their potential involvement or interest in the situation. Further investigations are likely underway to track the movement of the funds and identify the exploiter. #AethirOFTAdapter#Exploitation#BlockchainSecurity#TRON#BNBChain#SymbiosisFinance#PeckShieldAlert#CryptoTheft#SecurityVulnerabilities#AethirCloud#AethirEco