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

Резултати

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

Пребарај: #financialchallenges

当前筛选 #financialchallenges清除筛选
Crypto M - Crypto News

@CryptoM · Post #64912 · 10.04.2026 г., 09:17

🚀 Crypto Startups Face High MiCA Compliance Costs in EU Crypto startups in the European Union are encountering significant financial challenges due to the compliance costs associated with the Markets in Crypto-Assets (MiCA) regulation. According to NS3.AI, the licensing expenses alone range from €250,000 to €500,000, posing a substantial burden on smaller firms. Austria's Financial Market Authority provides licensing timelines of less than six months, while Germany has reduced the transition period to 12 months. This has intensified the pressure on companies unable to manage the increased compliance costs. #Crypto#Startups#EU#MiCA#Compliance#Regulation#Finance#Licensing#Costs#FinancialChallenges

Crypto M - Crypto News

@CryptoM · Post #64882 · 10.04.2026 г., 06:45

🚀 Ondo Explores Challenges in Stock Perpetuals Stock perpetuals have faced persistent challenges, according to PANews. Ondo, a financial services company, has identified a three-layered structural explanation for these difficulties. The first issue is the inherent complexity of stock perpetuals, which can deter potential investors. Unlike traditional stock investments, perpetuals require a deeper understanding of financial derivatives, making them less accessible to the average investor. Secondly, the market infrastructure for stock perpetuals is not as developed as that for other financial instruments. This lack of infrastructure can lead to inefficiencies and increased costs, further discouraging participation. Lastly, regulatory uncertainties surrounding stock perpetuals contribute to their underperformance. The evolving nature of financial regulations can create an unpredictable environment, making it challenging for investors to commit to these instruments. Ondo's analysis highlights the need for improved education, infrastructure, and regulatory clarity to enhance the performance and adoption of stock perpetuals. #Ondo#StockPerpetuals#FinancialChallenges#InvestmentComplexity#MarketInfrastructure#RegulatoryUncertainty#FinancialDerivatives#InvestorEducation#FinancialRegulations#StockMarket#ONDO

Crypto M - Crypto News

@CryptoM · Post #64704 · 09.04.2026 г., 15:10

🚀 Gunzilla Games Faces Wage Delays Amid Token Decline Gunzilla Games is experiencing significant financial challenges, with employees reporting wage delays of up to five months. According to NS3.AI, CEO Vlad Korolev has stated that some payments are being scheduled to align with the company's cash flow. Several employees, including senior game programmer Vladyslav Spitkovskyi, are seeking compensation through the European Union legal framework. Additionally, the GUNZ token, integral to Off The Grid's in-game economy, has seen a substantial decline, dropping nearly 86% since its launch last year. #GunzillaGames#WageDelays#FinancialChallenges#TokenDecline#GUNZToken#OffTheGrid#GameDevelopment#EmployeeCompensation#EuropeanUnion#VladKorolev