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

TGINSIGHT SIMILAR POSTS

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

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

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

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

Пребарај: #audiobook

当前筛选 #audiobook清除筛选
MILLIONER KUTUBXONASI

@Biglibrary_uz · Post #9172 · 16.08.2025 г., 08:44

🛜🔠🔠🔠🔠🔠 🔠🔠🔠🔠 💛 Alkimyogar Bu kitobni qancha kop maqtasam arziydi! Qayta qayta tinglang Va o'qing! Va albatta barcha ORZU maqsadlaringiz Amalga oshganda bizni ham albatta tabassum bilan eslab qo'ying 🤍 🤍 SİZ SO'RAGAN AUDİO KİTOB! #audiobook 💛@Biglibrary_uz

Hashtags

MILLIONER KUTUBXONASI

@Biglibrary_uz · Post #8849 · 26.03.2025 г., 06:55

🔠🔠🔠🔠🔠🔠🔠🔠 🎙 Ichindagi ichindadur 💡 Hayrlı kun kitobsevar qadrdonlarim!! Sizga Juda zo'r #audiobook🎧 bilan keldim. Albatta tinglang! Juda ham zo'r kitob! Qancha tariflasam , shuncha so'zlar ojizlik qiladi! Ming marta maqtagandan ko'ra bir marta o'zingiz mazasini tatib koring 🫂 Bu kitobni o'qiganlar Yoki tinglaganlar bormi , 🔥 reaksiyalarni bosib qoying @Milliarderlarim

Hashtags

PT资讯频道

@PrivateTrackerNews · Post #799 · 12.08.2019 г., 14:30

2019/08/12 #开放注册 #OpenSignupTracker #国外PT 电报 @PT资讯频道 Telegram @privatetrackernews 电子书/有声书/在线学习 Tracker's Name: #Audiobook (ABT) Genre: ELearning Sign-up Link: https://abtorrents.me/signup.php Closing Date: 12/8/2019 till 18/8/2019. Additional information: Audiobook Torrents is a Private Torrent Tracker for ELearning releases.

Velvet Pages | eLibrary 🥂

@bookslibraryofficial · Post #1534 · 09.03.2026 г., 16:01

📖Title : The Frozen River ✍️Author : Ariel Lawhon ⭐️Rating : 4.38/5 (Goodreads) 📆Published : Dec 05, 2023 ———————————————— Summary:The Frozen River by Ariel Lawhon is a historical mystery set in 1789 Maine. Midwife and healer Martha Ballard is called to examine the body of a man found trapped in the frozen Kennebec River. While authorities quickly declare the death an accident, Martha suspects something far darker. As she records events in her diary and follows the clues, she uncovers a web of violence, secrets, and injustice involving powerful members of the community. Determined to seek the truth despite threats and social pressures, Martha risks her reputation and safety while fighting for justice in a society where women’s voices are often ignored. ———————————————— #fiction#mystery#audiobook#historical#thriller#ariellawhon#thefrozenriver@Bookslibraryofficial

Velvet Pages | eLibrary 🥂

@bookslibraryofficial · Post #1514 · 07.01.2026 г., 15:34

📖Title : More Days at the Morisaki Bookshop ✍️Author : Satoshi Yagisawa ⭐️Rating : 3.85/5 (Goodreads) 📆Published : Dec 06, 2011 ———————————————— Summary:More Days at the Morisaki Bookshop follows Takako as she continues healing while living above her uncle’s secondhand bookshop in Tokyo’s Jimbocho district. Surrounded by books and familiar faces, she confronts lingering grief, evolving relationships, and quiet uncertainties about the future. The novel focuses on small, meaningful moments, showing how literature, routine, and human connection gently restore a sense of belonging. Through everyday interactions, it portrays healing as gradual, imperfect, and deeply tied to community, memory, and the comforting presence of books. ———————————————— #fiction#japan#cozy#audiobook#romance#moredaysatthemorisakibookshop#satoshiyagisawa@Bookslibraryofficial@free_novellas@eternalmantra

Velvet Pages | eLibrary 🥂

@bookslibraryofficial · Post #1499 · 30.12.2025 г., 15:06

📖Title : Bemused ✍️Author : Farrah Rochon ⭐️Rating : 3.92/5 (Goodreads) 📆Published : Jan 07, 2025 ———————————————— Summary:Five sheltered sisters living in a quiet seaside village learn that they are the legendary Muses, daughters of Mnemosyne, Goddess of Memory. After their mother is kidnapped by Hades, the sisters are forced to leave their protected lives behind. Guided by Calliope’s leadership, they journey through dangerous lands, face mythical trials, and uncover their divine powers. Along the way, they confront fear, doubt, and destiny itself. Through music, storytelling, courage, and unity, the sisters strengthen their bond and transform from overlooked performers into heroic figures, embracing their true identities and shaping their own legendary “gospel truth.” ———————————————— #fantasy#mythology#retellings#fiction#historicalfiction#audiobook#bemused#farrahrochen@Bookslibraryofficial@free_novellas@eternalmantra

12
ПретходнаСтраница 1 од 2Следна