Бывает начинающие в процессе обучения создают файлы с именем модуля который они изучают. В результате на тестовых запусках ничего не работает😱
Всё потому, что появилась коллизия имён. Например, изучаете вы модуль 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
The EPRP Rises Again: A Fearless Spirit Confronts Abiy’s Fearful Regime. Read more.
https://borkena.com/2025/12/07/ethiopia-eprp-rises-again-a-fearless-spirit-confronts-abiys-fearful-regime/#Ethiopia#politics#EPRP
EPRP Central Committee Meeting, Vows To Intensify Its Struggle For Ethiopians. Read more.
https://borkena.com/2025/11/19/eprp-central-committee-meeting-vows-to-intensify-its-struggle-for-ethiopians/#Ethiopia#Politics#EPRP
EPRP Calls For A Public Meeting In Addis Ababa. Read more.
https://borkena.com/2025/11/22/ethiopia-eprp-calls-for-a-public-meeting-in-addis-ababa/#Ethiopia#News#EPRP#PublicMeeting
News: #EPRP says politician #Yeshiwas Assefa arrested, calls for immediate release
The #Ethiopian People’s Revolutionary Party (EPRP) has announced that politician Yeshiwas Assefa has been arrested, saying it confirmed the development through his family members.
In a statement issued today, the party said Yeshiwas was taken into custody yesterday, describing the arrest as part of what it called the government’s continued crackdown on citizens engaged in peaceful political activity.
“This is one of the countless acts that demonstrate the government’s ongoing suppression of citizens engaging in peaceful political activities,” the statement read.
The EPRP further argued that such actions cast doubt on the credibility of the upcoming elections, which ruling party officials have repeatedly pledged will be free, fair and democratic. Instead, the party said, the current
https://web.facebook.com/AddisstandardEng/posts/pfbid0haYBwZFd8QeABk6i1v9kN4LtHyVXkPGG4mFcjx4T6UPUAx1SVkJ5PCi2FpXQ74Col
EPRP Press Conference on planned demonstration. Watch it.
https://borkena.com/2026/04/15/eprp-press-conference-on-planned-demonstration/#Ethiopia#News#EPRP#EthiopianNews#politics#EthiopianPolitics
EPRP Holding Its Public Meeting This Saturday In Addis Ababa. Read. https://borkena.com/2025/12/03/eprp-holding-its-public-meeting-this-saturday-in-addis-ababa/#Ethiopia#EPRP#AddisAbaba#opposition
News: #EPRP signals readiness to bypass electoral board for nationwide protests
Ethiopian People’s Revolutionary Party says it will proceed with planned demonstrations in ten cities on 8 May, 2026, even if it does not receive approval from the National Election Board of Ethiopia, citing constitutional guarantees on the right to assembly.
Speaking to Addis Standard, #Mistireslassie_Tamrat, EPRP’s General Secretary, said the party had formally notified #NEBE ahead of the planned protests but has yet to receive any response.
“Regarding the letter we submitted to the Electoral Board, we have not received any response so far; they haven’t notified us of anything, and we are still waiting,” she said.
Despite the lack of communication, Mistireslassie indicated that the party is prepared to move forward outside the electoral framework if necessary. “If this demonstration cannot proceed through the Electoral Board's framework, we will
Read more: https://addisstandard.com/?p=56537