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

Резултати

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

Пребарај: #relationships

当前筛选 #relationships清除筛选
Velvet Pages | eLibrary 🥂

@bookslibraryofficial · Post #1247 · 29.04.2025 г., 18:09

📖Title : Loving Sex: The Book of Joy and Passion ✍️Author : Laura Berman ⭐️Rating : 3.82/5 (Goodreads) 📆Published : Jul 18, 2011 ———————————————— Summary:Loving Sex: The Book of Joy and Passion by Dr. Laura Berman is an empowering, visually rich guide that helps couples build stronger emotional and sexual intimacy. Blending scientific insights with practical advice, it covers topics like desire, arousal, orgasm, communication, and overcoming common sexual challenges. Dr. Berman emphasizes the importance of trust, honesty, and connection in achieving a fulfilling sex life. With clear, nonjudgmental language and supportive tone, the book aims to dispel myths, address insecurities, and offer tools for deeper pleasure and understanding. It’s a celebration of loving, healthy sex that nurtures both the body and the heart. ———————————————— #relationships#non_fiction#sexuality@Bookslibraryofficial@free_novellas

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40422 · 27.12.2025 г., 19:01

People show more prejudice toward mixed-weight couples than toward couples with similar body sizes. They rate them as less compatible, suggest less intimate dates, and delay introducing them to friends and family. [Read more] @googlefactss#Psychology#Relationships#WeightBias#SocialPrejudice#CouplesResearch

First Love Should Be Forever... Right? 💔#shorts#cinema#firstlove#loveforever#heartbreak#romance#relationships#emotions#cinematic#lovequotes#drama#nostalgia#movingon https://pdmovies.substack.com/p/the-big-combo-1955