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

Резултати

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

Пребарај: #techleadership

当前筛选 #techleadership清除筛选
AI & Law

@ai_and_law · Post #336 · 21.06.2024 г., 07:04

Appian CEO Challenges AI Industry to Prioritize Trust Matt Calkins, CEO of Appian, has called on the AI industry to prioritize responsible development and trust. At a critical moment for AI, Calkins unveiled guidelines promoting data transparency, user consent, and respect for intellectual property. "We must ensure AI flourishes by building trust," Calkins stated. His four principles include disclosing data sources, using private data with consent, anonymizing personally identifiable data, and compensating for copyrighted information. These steps aim to shift AI development from a data race to a trust race. As AI faces increasing scrutiny, Calkins positions Appian as a leader in responsible AI, encouraging others to join this movement. Trust, he argues, will unlock AI's full potential and redefine industry success. #AI#ResponsibleAI#DataPrivacy#Appian#TechLeadership

INHA University in Tashkent

@inha_uz · Post #10083 · 13.02.2026 г., 09:44

🚀 ICT WEEK UZBEKISTAN 2026 The future isn’t coming. It’s being built — right here, right now. This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond. 🌍 Discover breakthrough technologies 🤝 Meet decision-makers and global partners 💡 Turn bold ideas into real projects 📈 Unlock new markets and opportunities This is not just an event. Whether you are a government leader, investor, entrepreneur, tech professional, or innovator — ICT Week Uzbekistan is where you need to be. ✨ Why attend? ✔️ High-level networking with global tech leaders ✔️ Startup & innovation showcases ✔️ Strategic forums and policy dialogues ✔️ Investment and partnership opportunities ✔️ Access to the fast-growing Central Asian tech market 📍 Tashkent, Uzbekistan 📅 September 22–25, 2026 Be part of the conversations that will define your tomorrow. Join ICT Week Uzbekistan 2026. Let’s connect. Let’s collaborate. Let’s build the future — together. #ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan

IT Ladies Uzbekistan

@itladiesuzbekistan · Post #257 · 09.02.2026 г., 14:44

🚀 ICT WEEK UZBEKISTAN 2026 The future isn’t coming. It’s being built — right here, right now. This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond. 🌍 Discover breakthrough technologies 🤝 Meet decision-makers and global partners 💡 Turn bold ideas into real projects 📈 Unlock new markets and opportunities This is not just an event. Whether you are a government leader, investor, entrepreneur, tech professional, or innovator — ICT Week Uzbekistan is where you need to be. ✨ Why attend? ✔️ High-level networking with global tech leaders ✔️ Startup & innovation showcases ✔️ Strategic forums and policy dialogues ✔️ Investment and partnership opportunities ✔️ Access to the fast-growing Central Asian tech market 📍 Tashkent, Uzbekistan 📅 September 22–25, 2026 Be part of the conversations that will define your tomorrow. Join ICT Week Uzbekistan 2026. Let’s connect. Let’s collaborate. Let’s build the future — together. #ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan

Venture Village Wall 🦄

@venturevillagewall · Post #3969 · 24.01.2025 г., 10:00

Trump Signs AI Development Plan President Trump has signed an executive order to establish the U.S. as the world leader in AI. A 180-day deadline is set for creating an AI Action Plan aimed at strengthening America's global dominance in this field. Additionally, Trump has tasked his AI advisor to eliminate policies from the previous administration. This announcement was made during his speech at the World Economic Forum, affirming plans for leadership in AI and cryptocurrency. For more details, check the full articles: Forklog News #AI#Crypto#Policy#TechLeadership #AI#Crypto#Policy#TechLeadership#Trump#Innovation#Economy#NationalSecurity#ExecutiveOrder#Davos#ActionPlan#America#FutureTech#Leadership#GlobalDominance

Venture Village Wall 🦄

@venturevillagewall · Post #3903 · 17.01.2025 г., 13:00

Market Trends Impact Developer Salaries Developers face salary stagnation as the job market grows competitive. With more candidates than job openings, mid-senior professionals find job switches yield minimal salary increases. Becoming a tech lead is rare and corporations limit hiring senior candidates. Stability may lie in entrepreneurship or pet projects instead. Consider exploring these options for long-term financial health. #JobMarket#DeveloperSalaries#Entrepreneurship#PetProject#IT#CareerGrowth#TechIndustry#EmploymentTrends#SalaryTrends#BusinessModel#Stability#Competition#JobSwitch#MidCareer#SeniorDevelopers#MarketAnalysis#ITCareers#FinancialPlanning#TechJobs#Startup#TechLeadership