TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #203 · 18 јан.

Бывает начинающие в процессе обучения создают файлы с именем модуля который они изучают. В результате на тестовых запусках ничего не работает😱 Всё потому, что появилась коллизия имён. Например, изучаете вы модуль 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

Резултати

Пронајдени 2 слични објави

Пребарај: #ogm

当前筛选 #ogm清除筛选
Egountchi Behanzin Officiel

@egountchibehanzinOfficiel · Post #5787 · 12.03.2024 г., 13:31

🔔ALERTE INFO | Savez-vous pourquoi la Fondation Bill Gates et le gouvernement américain sont en alerte face à nos dénonciations sur les dangers des moustiques OGM génétiquement modifiés au Burkina Faso et l’impérialisme sanitaire des firmes pharmaceutiques occidentales ( américaines et européennes ) en Afrique ? Regardez la vidéo pour une meilleure compréhension. [ 1/2 ] ========================= Do you know why the Bill Gates Foundation and the American government are on alert in the face of our denunciations of the dangers of genetically modified GMO mosquitoes in Burkina Faso and the health imperialism of Western (American and European) pharmaceutical companies in Africa? Watch the video for a better understanding. #BillGates#Usa#Souverainetesanitaire#Afrique#Ogm#OMS Pour nous soutenir: https://www.paypal.me/LDNA @egountchibehanzinTv

Egountchi Behanzin Officiel

@egountchibehanzinofficiel · Post #7620 · 15.11.2024 г., 15:12

🌍 SANTÉ | En Floride 🇺🇸, après les lâchers de moustiques OGM menés par "#OXITEC" et financés par la fondation #BILLGATES des premiers cas de paludisme ont été détectés,alors qu'il n'y en avait pas depuis 20 ans. Coincidence ? 🤔🤷🏽‍♂️ De plus, en Afrique, notamment au Burkina Faso 🇧🇫 , où ces mêmes moustiques OGM ont été relâchés depuis 2019, sans consentement ni autorisation des populations locales on observe une augmentation sévère du #paludisme et de la #dengue. 🦟💉 La question se pose : à qui profite réellement cette "expérience" sous couvert d'aide humanitaire ? Les populations locales méritent des réponses claires et transparentes ! 🛑 ♦️LIGUONS-NOUS, REJOIGNEZ LA RÉSISTANCE SUR TELEGRAM. 🔺Pour les numéros français : https://t.me/egountchibehanzinTV 🔻Pour les numéros internationaux : https://t.me/egountchibehanzinTV #Santé#Paludisme#OGM#Afrique#Floride#Transparence @egountchibehanzinTV