Вторая по частоте 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
#MusicTech
Трэвис Скотт в Fortnite: концерт как технологический прорыв🎶
💎Когда музыка, игры и технологии сливаются в одно, рождаются новые форматы искусства. Виртуальный концерт Трэвиса Скотта в Fortnite – это не просто шоу, а технологическая революция, которая изменила индустрию.
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
Как технологии создали это шоу?🌍
🔵3D-анимация в реальном времени – цифровой Трэвис Скотт превращался в гиганта, погружался под воду и летал в космос.
🔵Геймдвижок Unreal Engine – позволил интегрировать живую музыку с интерактивными эффектами.
🔵VR и иммерсивные технологии – зрители ощущали себя внутри шоу, перемещаясь вместе с артистом.
🔵Облачные серверы и массовая синхронизация – 27,7 миллионов человек смотрели концерт одновременно, без лагов.
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
Этот кейс показал, что технологии меняют музыкальную индустрию – теперь концерты могут происходить в метавселенных, а сцена становится бесконечной 🎭
📌 Будущее музыки – это цифровые миры, где шоу создаются алгоритмами, а зрители могут взаимодействовать с артистом в реальном времени.
YouTube and Music Labels Collaborate on AI-Generated Music Guidelines
Hey there, AI & Law community!
YouTube has partnered with Universal Music Group and other notable record labels to establish a set of guidelines for dealing with AI-generated music.
Here are the key principles outlined in this framework:
1️⃣ AI Responsibility: YouTube commits to smart AI use with music partners.
2️⃣ Creative Protection: New AI creativity needs safeguards for music partners.
3️⃣ Trust & Safety: YouTube expands safety for AI content.
AI covers, where AI replaces original singers' voices, are being uploaded daily. YouTube is actively addressing copyright concerns through its Content ID system and plans to use AI to identify infringing content, although some controversies surround these efforts.
#AILaw#MusicTech#AIandMusic
Venture Capitalists Seek Unique Startups
Harry Stebbings highlights the challenges in securing early investments for billion-dollar startups. He notes that successful startups often face skepticism, as venture funds must invest in uniquely promising ideas that others doubt. This trend raises the question: should you seek agreement or disagreement on your idea?
In related news, the music generator JEN-1.5 is now publicly available, focused on licensed content under Warner. However, it lacks quality, providing only basic melodies and no vocal options. While it includes a subscription model for limited generations, it aims to appeal to musicians with its StyleFilter tool, which promises some innovative potential.
You can explore JEN-1.5 here.
#Startups#Investing#VentureCapital#MusicTech#AI#Innovation#Funding#Entrepreneurship#Disruption#Technology#TechNews
Raising Funds for Innovative Projects
🔹 Nil Foundation raised $600k in a public sale for its zkSharding Ethereum Layer 2 technology.
🔹 SoloAI, an AI music platform, secured $2M in seed funding led by HongShan.
🔹 Mansa, a DeFi platform focused on Africa, raised $3M in a pre-seed round with Tether's leadership.
🔹 ResearchHub, a tokenized social network, garnered $2M from BoostVC.
🔸 SEC has approved Figure's YLDS, the first interest-bearing stablecoin, registered as a security with a 0.5% annual yield. Users must complete KYC for daily returns. Read more
🔸 SEC is intensifying efforts on crypto staking regulations and is seeking industry memos for upcoming guidance. More details
🔸 A joint venture for a stablecoin license in Hong Kong has been formed between Standard Chartered, Animoca Brands, and HKT. Explore the partnership
#Ethereum#DeFi#AI#Stablecoin#Crypto#VC#Web3#Fundraising#Funding#KYC#SEC#HongKong#CryptoRegulation#MusicTech#CrossBorderPayments#TokenizedEconomy#Innovation#TechInvestment#Blockchain#InvestmentOpportunity
Recent Startup Funding Rounds Announced
Several startups have recently secured funding to advance their innovative solutions:
- Lizzy Care: $2.60M for transforming dementia care with technology and support.
- Nuj Super: $2.53M for developing enhanced superannuation solutions.
- Aithra: $2.10M for unique 3D printing innovations with diverse material capabilities.
- AlterDiag: $2.08M for rapid diagnostic tests targeting unmet medical needs.
- Solo AI: $2M for an AI-driven music platform for easy track creation and monetization.
- Banca.Me: $2M for risk-free financial solutions for individuals and companies.
- Visalaw.ai: $1.60M for AI research and drafting services in immigration law.
- HYDGEN: $1.49M for green hydrogen solutions promoting decarbonization.
- Cancrie: $1.20M for enhancing energy efficiency in batteries by innovating with waste materials.
- Hill: $1.20M focusing on improving infrastructure solutions.
#Funding#Startups#Healthcare#AI#3DPrinting#Biotech#Fintech#MusicTech#Energy#Hydrogen#Sustainability#Decarbonization#DiagnosticTests#Immigration#Batteries#Innovations#VC#Tech