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

Резултати

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

Пребарај: #zerofeetrading

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

@CryptoM · Post #64908 · 10.04.2026 г., 09:00

🚀 Binance Launches Zero-Fee Trading for BTC/U Pair According to the announcement from Binance, the platform is introducing a zero-fee trading promotion for the BTC/U spot and margin trading pair, effective from 2026-04-17 00:00 (UTC). This promotion will run until 2026-07-16 23:59 (UTC), allowing eligible users to trade without incurring maker and taker fees on this specific pair. However, during the promotion period, trading volume on the BTC/U pair will not contribute to the VIP tier volume calculation or any Liquidity Provider programs. Additionally, BNB discounts, referral rebates, and other adjustments will not apply to this trading pair. United Stables (U) is a next-generation stablecoin backed by fully fluid assets, designed to unify fragmented liquidity across various sectors including trading, payments, DeFi, institutional settlement, and AI-driven autonomous systems. It represents a "fluid" future where value seamlessly flows between humans and AI. Notably, U is the first batch of BNBChain stablecoin to support EIP-3009 gasless authorization, facilitating efficient value transfer across ecosystems. Users should be aware that standard trading fees will resume once the promotion period concludes. Trading eligibility is subject to the user's country or region of residence, with certain jurisdictions restricted from participating. These include Canada, Cuba, Crimea Region, Iran, Netherlands, North Korea, Syria, the United States and its territories, and non-government controlled areas of Ukraine. Binance reserves the right to disqualify users involved in dishonest behavior and to amend the promotion terms at its discretion. Participants must complete account verification to engage in trading these new pairs, and the list of restricted countries may change due to legal and regulatory updates. #Binance#BTCU#ZeroFeeTrading#Cryptocurrency#Stablecoin#DeFi#BNBChain#CryptoPromotion#DigitalAssets#CryptoTrading