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

Пребарај: #futureplans

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

@CryptoM · Post #65233 · 12.04.2026 г., 06:56

🚀 Bittensor Co-Founder Addresses Covenant AI Incident and Future Plans On April 12, Bittensor co-founder Jacob Robert Steeves responded to the Covenant AI incident, expressing his shock over recent developments. According to BlockBeats, Steeves accused Covenant AI founder Samuel Dare of actions that severely harmed the protocol and community, betraying the trust of investors and users. He apologized to those affected by the incident. Steeves stated that Bittensor was designed to combat greed and selfishness by enabling collective ownership of AI through a permissionless mechanism. He acknowledged that the incident exposed vulnerabilities in the system but also highlighted the opportunity to strengthen the protocol and community's resilience. Looking ahead, Steeves proposed advancing a "Locked Stake" mechanism, introducing a "time + stake" commitment dimension at the protocol level to enhance transparency and investor protection, thereby reducing similar risks. He noted that this plan was initially designed with Samuel Dare's involvement. Furthermore, Steeves mentioned that the development of subnets 3, 39, and 81 will continue under community leadership, with no changes to their overall functionality and vision. He emphasized that Bittensor remains one of the most decentralized AI protocols and will continue to promote open AI development, with plans to advance towards training larger-scale models, including a trillion-parameter model in the future. #Bittensor#CovenantAI#JacobRobertSteeves#SamuelDare#AI#Blockchain#DecentralizedAI#InvestorProtection#LockedStake#AIProtocol#CommunityLeadership#OpenAI#FuturePlans#TrillionParameterModel#TAO