Вторая по частоте 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
Echidna Global Fellowship 2026 (Fully Funded in USA) 🇺🇸
Visit: https://opportunitiescorners.com/echidna-global-scholar-program/
The Program Covers Stipend, Airfare Tickets, Accommodation, Visa Cost, and Health Insurance.
#OpportunitiesCorners#Fellowship#USA
04 Days Left to Apply: Summer Research Program 2026 in Bulgaria 🇧🇬 (Fully Funded)
Visit: https://opportunitiescorners.com/bulgaria-insait-summer-fellowship/
12 Weeks Summer Internship for all the Nationals. No IELTS. No Fee.
The Program Covers Airfare, Accommodation, 2000 Euro Stipend, and Visa Support.
Deadline: 8 March 2026
#BulgariaSummer#Fellowship#OpportunitiesCorners
MIT KSJ Fellowship 2026/27 in USA 🇺🇸 (Fully Funded)
Visit: https://opportunitiescorners.com/mit-ksj-fellowship/
9 Months Program. Open to all the Nationals. The Program Covers Airfare, Housing, Insurance, 85000 USD Stipend.
#KSJ#USA#Fellowship#OpportunitiesCorners
2026 Berlin Fellowship in Germany 🇩🇪 (Fully Funded)
Visit: https://opportunitiescorners.com/berlin-fellowship-program/
The Program Covers Airfare, Meals, Accommodation, Monthly Stipend, Living Expenses, Health Insurance.
#Berlin#Fellowship#Germany#OpportunitiesCorners
Field research fellowship
If you're a UPSC student and thinking about a Plan B, this could be the perfect opportunity for you. Data Analytics for Public Policy Fellowship is a 2 months , fully online program that allows you to explore the world of quantative research methods. It's a great way to test your interests and see if research could be your Plan B. The program runs from 5th January to 15th March 2025, and you won't need to travel for fieldwork—everything can be done in your own neighborhood. With limited seats, this is a chance to explore new opportunities without a long-term commitment. Apply by 4th January.
https://iisppr.org.in/data-fellowship/
#UPSC#CareerPlanning#Fellowship#NewOpportunities
Field research fellowship
If you're a UPSC student and thinking about a Plan B, this could be the perfect opportunity for you. The IISPPR Field Research Fellowship is a one-month, fully online program that allows you to explore the world of qualitative research methods. It's a great way to test your interests and see if research could be your Plan B. The program runs from September 1 to 30, 2024, and you won't need to travel for fieldwork—everything can be done in your own neighborhood. With limited seats, this is a chance to explore new opportunities without a long-term commitment. Apply by August 15
https://iisppr.org.in/
#UPSC#CareerPlanning#Fellowship#NewOpportunities
Field research fellowship
If you're a UPSC student and thinking about a Plan B, this could be the perfect opportunity for you. The IISPPR Field Research Fellowship is a one-month, fully online program that allows you to explore the world of qualitative research methods. It's a great way to test your interests and see if research could be your Plan B. The program runs from September 1 to 30, 2024, and you won't need to travel for fieldwork—everything can be done in your own neighborhood. With limited seats, this is a chance to explore new opportunities without a long-term commitment. Apply by August 15
https://iisppr.org.in/
#UPSC#CareerPlanning#Fellowship#NewOpportunities
Field research fellowship
If you're a UPSC student and thinking about a Plan B, this could be the perfect opportunity for you. The IISPPR Field Research Fellowship is a one-month, fully online program that allows you to explore the world of qualitative research methods. It's a great way to test your interests and see if research could be your Plan B. The program runs from September 1 to 30, 2024, and you won't need to travel for fieldwork—everything can be done in your own neighborhood. With limited seats, this is a chance to explore new opportunities without a long-term commitment. Apply by August 15
https://iisppr.org.in/
#UPSC#CareerPlanning#Fellowship#NewOpportunities
🇫🇷 Paris Collaborative Fellow 2026 | Fully funded
Дедлайн: 26 февраля 2026 | Страны: все | Уровни: школьники 12–18 лет
Что покрывают
Участие в глобальной программе для молодых инноваторов
Возможность презентовать проект перед международной экспертной панелью
Наставничество и сопровождение
Возможные предложения стажировок и рекомендательные письма
Доступ к международному сообществу участников из 80+ стран
Где учиться
Paris Collaborative (международная программа, онлайн/гибридный формат)
Подать онлайн: https://pariscolab.com
#fellowship#innovators#youth#startup#science#technology#socialimpact
🚀 Tether-Linked Super PAC Reports $300,000 Ad Spend Amid Zero Account Balance
Fellowship, a super PAC reportedly associated with Tether, has revealed a $300,000 advertising expenditure to Nxum Group, a company co-founded by Tether US CEO Bo Hines. According to NS3.AI, the Federal Election Commission filing indicates that the spending was in support of Georgia Republican Clay Fuller. Despite this significant expenditure, Fellowship's current federal disclosures continue to show its accounts at zero, even after a prior announcement that it would be established with pledges totaling $100 million.
#Tether#SuperPAC#AdSpend#NxumGroup#BoHines#FederalElectionCommission#GeorgiaRepublican#ClayFuller#Fellowship#PoliticalExpenditure#ZeroBalance#NS3AI