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

Резултати

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

Пребарај: #gamingindustry

当前筛选 #gamingindustry清除筛选
GAMEFEST.UZ

@gamefestuz · Post #253 · 04.03.2026 г., 08:06

🚀Netflix Game Fest 2026 da ishtirok etadi! 🎮🔥 Yirik yangilik! Netflix Game Fest 2026 doirasida global o‘yin sanoatiga oid yangi loyihalar, eksklyuziv taqdimotlar va innovatsion yechimlar namoyish etadi. 🌍✨ Bu tadbir o‘yin industriyasi, kreativ texnologiyalar va interaktiv kontent sohasidagi eng so‘nggi yangiliklarni bir maydonga jamlaydi. 🎯Nimalar kutilmoqda? 🔥 Yangi o‘yin loyihalari taqdimoti 🎨 Kreativ hamkorliklar va eksklyuziv e’lonlar 💡 Gamedev bo‘yicha innovatsion yondashuvlar 🤝 Global hamkorlar va ishlab chiquvchilar bilan uchrashuvlar Netflix’ning Game Fest 2026 dagi ishtiroki o‘yin sanoatida yangi bosqichni boshlab berishi kutilmoqda. 🎉 Batafsil yangiliklarni kuzatib boring! 🚀 Netflix to Participate in Game Fest 2026! 🎮🔥 Big news! Netflix will take part in Netflix Game Fest 2026 , showcasing new gaming projects, exclusive announcements, and innovative solutions in the global gaming industry. 🌍✨ This major event will bring together the latest trends in gaming, creative technologies, and interactive entertainment on one global stage. 🎯 What to Expect: 🔥 Presentations of new game projects 🎨 Creative collaborations and exclusive reveals 💡 Innovative approaches in game development 🤝 Networking with global partners and developers Netflix’s participation in Game Fest 2026 is expected to mark an exciting new chapter in the gaming industry. 🎉 Stay tuned for more updates! #Netflix#GameFest2026#GameDev#GamingIndustry

TRUE LABS

@truegames · Post #21 · 29.07.2024 г., 16:03

COMING SOON: Fishy Business! 🐟💰 Deep below the waves, Marlin Brando runs a tight ship! His latest venture, FISHY BUSINESS, offers nothing but the best in speakeasy casino vibes, and it's COMING SOON! This exciting game features the Hold n Win feature, offering a jackpot potential of up to x5000. The Bassline Bonanza Free Spins introduce a giant symbol that occupies reels 2, 3, and 4, adding to the thrill with a max win potential of x5000. A high-stakes underwater adventure is approaching. Fishy Business launches on August 22nd! #FishyBusiness#ComingSoon#SlotGame#GamingIndustry#TrueLab#TrueSlots#TrueGames 🔞 | Play Responsibly

GAMEFEST.UZ

@gamefestuz · Post #268 · 30.03.2026 г., 06:10

🔥BOMBA YANGILIK! Mobidictum Toshkentga kelmoqda! ✈️🇺🇿 O‘yin sanoatining global "o‘yinchisi" Mobidictum endi Game Fest 2026 doirasida biz bilan bo‘ladi. 🎮O‘yin yaratyapsizmi? 📈Loyihangizni sotmoqchimisiz? 💰Investor qidiryapsizmi? Unda 15-16 may kunlari Renaissance Hall'ga kelish shart! Bu imkoniyat yilda bir marta, balki hayotda bir marta beriladi. 🚀Game Fest 2026 — O‘z orzuingni dunyoga ko‘rsat! Maslahat: Postga Mobidictum logotipi va Game Fest 2026 ramzlari tushirilgan sifatli kreativ (poster) qo‘shishni unutmang. ————————— 🚀 BIG NEWS! Mobidictum is coming to Tashkent!✈️🇺🇿 The global powerhouse of the gaming industry, Mobidictum, is officially joining us at Game Fest 2026! 🎮Are you developing a game?📈Want to pitch your project to global publishers?💰Looking for the right investor? Then Renaissance Hall is the place to be on May 15-16! This is a once-in-a-lifetime opportunity to connect with one of the most influential gaming ecosystems in the world. What to expect from Mobidictum at Game Fest: * Global Networking: Connect with world-class publishers and experts. • Market Insights: Learn the secrets of scaling your game to the global top charts. • Investment Opportunities: Show your talent to those who can take it to the next level. Don't miss out on the biggest gaming event in the region! 🚀Game Fest 2026 — Show your dream to the world!#GameFest2026#Mobidictum#Tashkent#GameDev#GamingIndustry#Uzbekistan#GlobalGaming#Networking

Venture Village Wall 🦄

@venturevillagewall · Post #3494 · 19.12.2024 г., 13:58

Ripstone Secures $761.71K Funding Game development studio Ripstone has raised $761.71K in funding, aiming to enhance their projects and expand their offerings. More information can be found on their official website: Ripstone. #Ripstone#Games#Funding#GameDevelopment#Investment#Studio#VideoGames#IndieGames#GamingIndustry#GameDesign