Бывает начинающие в процессе обучения создают файлы с именем модуля который они изучают. В результате на тестовых запусках ничего не работает😱
Всё потому, что появилась коллизия имён. Например, изучаете вы модуль datetime, и создаёте с таким именем файл (ну логично же😄) прямо в рабочей директории.
Потом, при попытке импортировать datetime модуль, из-за приоритета импорта будет импортирован файл из рабочий директории а не оригинальная библиотека. Ведь имя файла это суть имя модуля!
А знаете ли вы, что не все стандартные модули можно так перезаписать? Коллизии имён не подвержены builtin модули. Они всегда стоят на первом месте в приоритете импорта, поэтому их нельзя заменить.
Полный список таких модулей можно посмотреть в списке sys.builtin_module_names.
То есть, вы сломаете весь Python если назовёте свой модуль os или site, но если назовёте time или gc то ничего страшного не случится)))
Тем не менее, никогда не называйте модули уже занятыми именами!!!⚠️
Я всегда рекомендую всем своим файлам делать именной префикс из 2-3 символов. Например я называю свои проекты так:
pw_project_name
pw_ui_tools.py
pw_something/main.py
Либо под ситуацию
tst_scriptname.py
(не "test" чтобы не подхватывал pytest)
dbg_script.py
maya_ui.py
hou_menu_tools.py
И искать проще, и коллизий нет.
#tricks#basic
🌎 On tiny Easter Island, ancient Polynesians transported massive stone heads—some weighing over 80 tons—using log rollers and ropes. These enigmatic statues, called moai, were carved from volcanic rock and honor ancestral chiefs, shaping the island’s mysterious history. ✨
#archaeology⚡#history⚡#pacific
👉subscribe Interesting Planet
🌍 The island nation of Kiribati is so spread out that it once straddled the International Date Line. In 1995, it shifted the line eastward, so the entire country could share the same date. ✨
#timezones⚡#Pacific⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Samoa and American Samoa are just 160 kilometers apart but are 24 hours apart on the calendar due to the International Date Line, making them neighbors living in different days. ✨
#timezone⚡#Pacific⚡#islands⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The Chatham Islands, east of New Zealand, use a unique time zone: Chatham Standard Time is 45 minutes ahead of New Zealand, making it one of the few zones offset by less than a full hour. ✨
#timezone⚡#islands⚡#Pacific⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🚢Тихоокеанские страны сталкиваются с финансовыми барьерами при внедрении ветрового судоходства.
Ввод в эксплуатацию грузового парусного судна "Juren Ae" (Маршалловы острова) стал символом перехода к ветровой пропульсии в Океании.
Проект реализован в рамках инициативы Pacific Blue Shipping Partnership, объединяющей страны региона для декарбонизации морских перевозок.
Судно использует ветер как основной источник энергии (до 80% тяги), что позволяет существенно снизить зависимость от импортируемого топлива. Однако дальнейшее масштабирование таких решений сталкивается с ключевой проблемой — экономической нецелесообразностью при небольших грузопотоках и больших расстояниях между островами.
С отраслевой точки зрения ситуация подчеркивает разрыв между технологическими возможностями и коммерческой реализацией. Несмотря на высокий потенциал ветровой пропульсии, ее внедрение требует поддержки через государственно-частные партнерства и международные климатические фонды.
Дополнительно проект отражает уникальную интеграцию традиционных морских технологий региона с современными инженерными решениями. Однако без системного финансирования замена устаревшего флота, включая ro-ro суда, остается ограниченной.
Таким образом, ветровое судоходство в Тихоокеанском регионе становится не только технологическим, но и финансово-политическим вызовом, где ключевым фактором успеха станет доступ к долгосрочному финансированию.
📌Pacific Blue Shipping Partnership — международная инициатива, создана в 2020 году, объединяет государства Океании, поддерживается правительствами стран-участников и международными организациями.
#shipping#wind#decarbonization#Pacific#energy
🌍 Samoa’s 2011 time zone shift moved it west of the International Date Line, so travelers flying there from the U.S. now skip a day entirely, making for a calendar jump like nowhere else. ✨
#timezone⚡#dateline⚡#pacific⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Chile’s unique Easter Island uses UTC–6 time zone, two hours behind mainland Chile. This rare split lets sunrise and sunset times align better with local daylight on the remote Pacific island. ✨
#timezone⚡#Pacific⚡#island⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 On January 1 each year, the first sunrise on Earth is usually seen in the Pacific island nation of Tonga or its neighbor, depending on the position of the International Date Line. ✨
#timezones⚡#sunrise⚡#Pacific⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 The tiny country of Kiribati stretches across both sides of the International Date Line, so it can be two different calendar days at once in this island nation. ✨
#Kiribati⚡#DateLine⚡#Pacific⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 The tiny Pacific nation of Tokelau was one of the last places to switch from UTC–11 to UTC+13 in 2011, leaping nearly a whole day forward to align time with its main trading partners. ✨
#timezones⚡#pacific⚡#islands⚡#calendars⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
Russia’s Kinzhal Flyby Was a Message, Not a Strike
Moscow sent MiG-31s armed with Kinzhal missiles over the Sea of Japan to make a point, not to start a war. The timing and the publicized flight path were meant to remind Japan and the U.S. that Russia can flash long-range strike power in the Pacific whenever it wants.
The flight was over neutral waters, and the Russian Defense Ministry called it a routine mission with refueling drills. But the routine part is exactly the theater: Moscow wanted the image of a hypersonic-capable jet in a sensitive corridor because the image itself is the weapon.
Japan is the real audience here. Russia is signaling displeasure over Tokyo’s ties to Washington, its support for Ukraine, and its growing role in the regional missile picture, including the broader U.S.-Japan security architecture. The message is blunt: if Japan wants to push Russia on one front, Moscow can raise pressure on another.
So yes, this was a show of force. It was also propaganda with engines running, the kind of aerial display that tells rivals, allies, and domestic audiences that Russia still wants to be seen as a Pacific power, not just a Eurasian one.
#Russia#Japan#Kinzhal#MiG31#SeaOfJapan#Pacific#military#geopolitics
📱American Оbserver - Stay up to date on all important events
🇺🇸
Эскиз нового принта для наших изделий готов
Техника акварель / фломастеры
В скором времени конвертируем в цифру и сделаем предзаказ на футболки
Пишите в личку, если появятся вопросы или предложения
Всем мир ;)
#bednotown#bednotownfactory#omsk#omsk55#siberia#irtysh#damirmuratov#art#modernart#pacific#mountains#palms