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

Пребарај: #stargateproject

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

@CryptoM · Post #64587 · 09.04.2026 г., 09:22

🚀 AI TRENDS | OpenAI Halts Stargate Project in UK, Plans to Resume Under Suitable Conditions OpenAI has announced the suspension of its Stargate project in the United Kingdom. According to Jin10, the company stated that it will continue with its plans in the UK once the appropriate conditions are met. The decision reflects OpenAI's strategic approach to ensure that the project aligns with its operational and regulatory standards. The Stargate project, which has garnered significant attention, is part of OpenAI's broader efforts to advance its technological initiatives globally. The company has not specified the exact conditions required for the project's resumption, leaving room for speculation about future developments. #AI#OpenAI#StargateProject#UK#Technology#RegulatoryStandards#ProjectSuspension#GlobalInitiatives#StrategicApproach

Venture Village Wall 🦄

@venturevillagewall · Post #3950 · 22.01.2025 г., 13:00

Circle Acquires Hashnote; $5.6M for Wingbits 🔍 Institutional investment management platform Hashnote acquired by Circle. 💰 Wingbits, a token-incentivized flight tracking network, raises $5.6M in a strategic funding round led by Borderless Capital and Bullish, with participation from various investors. 🔄 Significant crypto movement detected: 2,410 #BTC (worth $253M) transferred to Coinbase Institutional. ⚡ Mantle announces a financial blockchain center with a treasury of $4.3B, planning expansion of mETH and FBTC Protocols in 2025. 🌐 Mistral AI aims for IPO and opens Singapore office as part of regional expansion. 🏛️ Major U.S. Bitcoin miner MARA advocates for Bitcoin reserves in 50 states with state-level bills under consideration. 🚀 Stargate Project initiated by tech giants for AI infrastructure in the U.S., with $500 billion investment planned by 2029. 🔗Read more about Mantle's blockchain center. #Hashnote#Circle#Wingbits#Crypto#BTC#Mantle#mETH#FBTC#MistralAI#IPO#MARA#Bitcoin#StargateProject#AI#VC