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

Пребарај: #crossmargin

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

@CryptoM · Post #64552 · 09.04.2026 г., 07:31

🚀 Binance to Introduce USDS Across Multiple Services According to the announcement from Binance, the platform is set to integrate USDS (USDS) into several of its services, including Binance Simple Earn, "Buy Crypto," Binance Convert, Binance Margin, and VIP Loan. The rollout is scheduled to commence on 2026-04-09 at 08:00 (UTC), when USDS Flexible Products and Locked Products will be available for subscription on Binance Simple Earn. In addition to the Simple Earn integration, users will have the option to purchase USDS using VISA, MasterCard, Google Pay, and Apple Pay, or trade it with their account balances on the "Buy Crypto" page. This feature will be accessible within one hour of USDS being listed on Binance Spot. Furthermore, Binance Convert will allow users to trade USDS against BTC, USDT, and other tokens without incurring any fees, also within one hour of its listing. For those interested in margin trading, Binance Margin will introduce USDS as a new borrowable asset on both Cross and Isolated Margin. The trading pairs USDS/USDT, BTC/USDS, and ETH/USDS will be available on Cross Margin starting at 2026-04-09 08:00 (UTC). Similarly, these pairs will be accessible on Portfolio Margin at the same time. Additionally, USDS will be listed as a borrowable coin on VIP Loan shortly after its spot listing. Binance advises users to exercise caution, as newly listed tokens can exhibit significant volatility. It is recommended that traders implement robust risk management strategies. For the latest information on marginable assets, users are encouraged to consult the Margin Data section. This integration marks a significant expansion of USDS's availability across Binance's diverse range of financial services. #Binance#USDS#BinanceSimpleEarn#BuyCrypto#BinanceConvert#BinanceMargin#VIPLoan#CryptoTrading#MarginTrading#SpotListing#BTC#ETH#USDT#CrossMargin#IsolatedMargin#PortfolioMargin#VISA#MasterCard#GooglePay#ApplePay#RiskManagement#CryptoVolatility#FinancialServices#CryptoAssets