@maybeapoet · Post #20473 · 08.07.2024 г., 19:24
| speacial thanks to shakh (كاتب ) #freepalestine
Hashtags
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
Пребарај: #freepalestine
@maybeapoet · Post #20473 · 08.07.2024 г., 19:24
| speacial thanks to shakh (كاتب ) #freepalestine
Hashtags
@filosofarsogood · Post #11934 · 08.10.2024 г., 05:15
È appena uscito un nuovo episodio! #FreePalestine from HAMAS: 7 ottobre, un anno dopo Ascoltalo cliccando su https://open.spotify.com/episode/3OtA2ThNguUfFUIXU3tkrL
Hashtags
@mehmetperincek · Post #6687 · 17.09.2025 г., 11:14
🇮🇹🇵🇸 Roma sokaklarında adım başı Filistin'le dayanışma mesajları görmek mümkün. #FreePalestine
Hashtags
@marwa_osmanlb · Post #5045 · 31.10.2025 г., 18:31
Bravery is when your bones remember freedom, even after generations of chains. Resist for Palestine. #FreePalestine
Hashtags
@Yulduz_Usmonova · Post #3631 · 08.01.2025 г., 19:26
#FreePalestine Yulduz Usmonova va Mansur Agaliev tomonidan Falastindan olib kelingan ayollar va bolalarga "Shohsaroy" uylaridan 2 ta kvartira sovg'a qilindi. @Yulduz_Usmonova @YulduzIbragimovnaUsmonova
Hashtags
@Marwa_OsmanLB · Post #3497 · 19.10.2024 г., 17:21
The baton he cast never touched the ground; before it could fall, it was seized by those prepared to continue the path towards Liberation. Palestine remains resilient and unwavering, ever-ready to nurture countless successors like Sinwar, ensuring the struggle endures. #FreePalestine
Hashtags
@Marwa_OsmanLB · Post #3483 · 18.10.2024 г., 03:41
Martyr Yehya Sinwar faced his final moments with unwavering defiance. Clad in his fatigues, even with his right arm severed, he mustered the strength to hurl a stick at the Israeli drone recording him, a gesture of defiance in the face of overwhelming odds. From the moment he initiated the Al Aqsa Flood, he had accepted his fate with unyielding resolve. This footage serves as a potent symbol, one that will undoubtedly fuel the momentum of the rising tide. #FreePalestine
Hashtags
@unicornriotninja · Post #3435 · 07.08.2025 г., 14:17
Denver, CO: #FreePalestine Sit-In Protests Zionist Ties at Center on Colfax - 2/2 [Twitter Archive, August 6, 2024]: https://unicornriot.ninja/2024/pro-palestine-anti-genocide-activists-rally-outside-denver-community-center-with-ties-to-israel/
Hashtags
@unicornriotninja · Post #3434 · 07.08.2025 г., 14:17
Denver, CO: #FreePalestine Sit-In Protests Zionist Ties at Center on Colfax - 1/2 [Twitter Archive, August 6, 2024]: https://unicornriot.ninja/2024/pro-palestine-anti-genocide-activists-rally-outside-denver-community-center-with-ties-to-israel/
Hashtags
@Marwa_OsmanLB · Post #3310 · 22.09.2024 г., 06:43
Keep your chins up, Imam Ali pbuh once said: " In wars, Sometimes we strike our enemy, and sometimes our enemy strikes us." Not all days will be good, but we yearn for just a few good days and InshAllah, victory will be ours. #FreePalestine
Hashtags
@Marwa_OsmanLB · Post #3202 · 13.09.2024 г., 20:23
📍Location: Meron Mountain, northern occupied Palestine. 🔻Hezbollah Rockets rain on illegal colonial settlers after Israel killed civilians in south Lebanon hours before. Result: You reap what you sow. This is what haopens to you when you are land thieves. Leave. Now. #FreePalestine
Hashtags
@ertaisfr · Post #1721 · 27.10.2023 г., 10:14
Мусульмандардын каны төгүлгөн үчүн адам укугу деп дүйнөдө кыйкыргандар унчукпай отурушат. Эртең 28-ноябрь саат 11:00 Бишкекте Горький паркында Палестина элин колдоо акциясы өтөт. Исанова менен Рыскулова кесилишинде. Акция учурунда гумжардам чогултулат. #freepalestine
Hashtags