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

Резултати

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

Пребарај: #extradition

当前筛选 #extradition清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #3730 · 27.12.2024 г., 16:00

Do Kwon Extradited to the USA Montenegro's Justice Minister Bojan Bozovic has ordered the extradition of Do Kwon, founder of Terra, to the United States. This comes after the court denied Kwon's appeal against extradition. Kwon remains under scrutiny for alleged fraud amounting to $4.47 billion, and was arrested in March 2023. His extradition allows U.S. authorities to pursue charges related to investor deception and wealth concealment. For more details, check the full report here. #Terra#LUNA#DoKwon#crypto#extradition#Montenegro#law#fraud#SEC#blockchain

Crypto M - Crypto News

@CryptoM · Post #65244 · 12.04.2026 г., 08:36

🚀 German Hacker Arrested in Bangkok for Cybercrime Activities A 27-year-old German hacker, Noah Christopher, has been arrested in Bangkok, Thailand, facing up to 74 arrest warrants for cybercrimes in Europe. According to Odaily, investigations reveal that between 2021 and 2025, Christopher allegedly developed and operated a ransomware platform and a 'Cybercrime-as-a-Service' (CaaS) system. This included providing tools for distributed denial-of-service (DDoS) attacks, such as Fluxstress and Neldowner, assisting global clients in launching cyberattacks for payment. The ransom payments involved cryptocurrencies and other digital assets, constituting transnational cybercrime activities. His visa has been revoked, and he is currently detained awaiting extradition to Germany. #Cybercrime#Hacker#Ransomware#CaaS#DDoS#Cryptocurrency#Extradition#Thailand#Germany#TransnationalCrime