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

Резултати

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

Пребарај: #futurefinance

当前筛选 #futurefinance清除筛选
SLEX NEWS

@slex_io · Post #163 · 23.02.2024 г., 09:21

🤝New Exciting Partnership: SLEX Exchange Has Joined the Syscoin Ecosystem🥳 ☄️We're thrilled to announce that SLEX Exchange is now a member of the Syscoin ecosystem. It supports low-cost transactions, high throughput, and a variety of decentralized finance (DeFi) applications, making it an attractive ecosystem for developers and users alike✨ 📊Joining the Syscoin ecosystem is part of our broader initiative to support a diverse range of blockchains, enhancing the trading experience for our users. We're excited to support the following blockchains, each bringing unique strengths to the table: 🔗Scroll 🔗Zora 🔗Arbitrum 🔗Optimism 🔗zkSync 🔗Linea 🔗Base 🔥Stay tuned for more updates as SLEX will continue to grow and evolve, providing new exciting features for efficient trading! #SLEXExchange#SyscoinEcosystem#BlockchainDiversity#CryptoTrading#Innovation#FutureFinance

Venture Village Wall 🦄

@venturevillagewall · Post #4003 · 27.01.2025 г., 22:00

SEC Reviews Bitcoin and Ethereum ETFs Cboe BZX proposed rule changes to SEC for ARK 21Shares Bitcoin ETF and 21Shares Core Ethereum ETF, allowing in-kind creations and redemptions. Additionally, Venice, founded by Erik Voorhees, opened its API for AI development and launched the Venice token (VVV) with airdrop to over 250k users. DARPA initiated a pre-crime AML program to combat digital asset money laundering, raising concerns over discrimination. Kucoin pled guilty to unlicensed money transmitter charges, resulting in deferred prosecution agreements. Bitcoin prices fluctuating, with recent transactions indicating notable movements. More developments in the crypto market with potential implications on broader economic issues. 📈 Current Bitcoin price: $102,000. For more: Nate Geraci, Leviathan News, Leviathan News, Leviathan News #SEC#Bitcoin#Ethereum#ETF#Crypto#AI#VC#Venice#Kucoin#AML#DARPA#DigitalAssets#CryptoMarket#Investing#MoneyLaundering#FinancialRegulation#Cryptocurrency#TokenLaunch#TechInnovation#FutureFinance#MarketTrends