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 слични објави

Пребарај: #cryptopia

当前筛选 #cryptopia清除筛选
SingSing Announcement

@singsingchannel · Post #593 · 16.08.2023 г., 03:31

🥳 🥳 We are excited to announce the upcoming Cryptopia x SingSing Karaoke night on August 16, 2023 (Wednesday) at 8PM (PH Time). ➡️To join in the fun, all you need to do is follow these steps: ✏️Follow @singsingnetwork on Twitter & Join the SingSing PH Telegram Community - https://t.me/singsingPH ✏️ Post on Twitter a screenshot of your SingSing account and tag @singsingnetwork@domslumabi and @CryptopiaOFCL ✏️ Use the Hashtag #SingSing#Cryptopia#SingSingKaraokeNightwithCryptopia ➡️➡️Five winners will be chosen among new users who post on Twitter. ⭐️But wait, there's more! ✏️ ✏️ lucky users who will sing during the Cryptopia x SingSing Karaoke night will also win a wooden mic each. So, warm up those vocal cords and get ready to belt out your favorite tunes. ❤️We hope to see you there! Don't forget to spread the word and invite your friends to join in on the fun. 🔔🔔🔔🔔🔔🔔🔔🔔 Join our community for more: 🌐Global🇵🇭Philippine🇮🇩Indonesian

Venture Village Wall 🦄

@venturevillagewall · Post #3587 · 20.12.2024 г., 10:06

Cryptopia Resumes User Fund Returns 💰 The beleaguered exchange Cryptopia, which suffered a $16 million hack in 2019 and has been in liquidation, has finally begun refunding its clients. Applications for reimbursement were accepted in 2020, allowing over 10,000 platform users to claim a share of $225 million. Users of the defunct exchange are now receiving invitation letters to file claims for refunds. Read more: Forklog #Cryptopia#Funding#Hacking#Exchange#Liquidation

Venture Village Wall 🦄

@venturevillagewall · Post #3605 · 20.12.2024 г., 18:00

K33 Predicts Bull Run Peak Date 📈 K33 analysts forecast the peak date of the bull run. ⚖️ Craig Wright receives a conditional sentence for contempt of court. 💵 VC investors are retreating from crypto as the market shifts. 📊 Bitcoin's failure at $100K triggered over $1 billion in liquidations. 🐋 El Salvador expands Bitcoin purchases despite IMF deal. 💬 Tornado Cash co-founder demands dismissal of charges. 👾 Ilya Lichtenstein claims sole responsibility for Bitfinex hack. 💰 Cryptopia clients received $225 million in assets from liquidators. ✅ SEC approves first hybrid ETFs based on Bitcoin and Ethereum. 👁 German regulator orders World to delete user data. 👀 Investors file a lawsuit against the HAWK token team. ⚽️ American football player to receive part of salary in Bitcoin. 🚀 Cathie Wood confirms Bitcoin price prediction above $1 million. #K33#CraigWright#Crypto#Bitcoin#Liquidations#ElSalvador#TornadoCash#Bitfinex#Cryptopia#SEC#ETFs#Germany#HAWK#Football#CathieWood#Investors#Funding#VentureCapital#Market#Investments

Venture Village Wall 🦄

@venturevillagewall · Post #3602 · 20.12.2024 г., 17:03

Crypto Highlights: Recent Developments 📈 K33 analysts have predicted the peak date of the bull run. ⚖️ Craig Wright received a conditional sentence for contempt of court. 💵 VC investors are leaving crypto, while crypto distances itself from VC investors. 📊 A Bitcoin crash at $100,000 led to over $1 billion in liquidations. 🐋 El Salvador expanded its Bitcoin purchases despite an IMF deal. 💬 Tornado Cash co-founder demands charges be dropped. 👾 Ilya Lichtenstein claims sole responsibility for the Bitfinex hack. 💰 Cryptopia clients received $225 million in assets from liquidators. ✅ SEC approved the first hybrid ETFs based on Bitcoin and Ethereum. 👁 German regulator ordered World to delete user data. 👀 Investors sued the team behind the HAWK token. ⚽️ An American football player will receive part of his salary in Bitcoin. 🚀 Cathy Wood confirmed her Bitcoin price prediction exceeds $1 million. 🤑 Colin Wu shared the success story of a 24-year-old crypto trader. #K33#CraigWright#VC#Bitcoin#Liquidation#ElSalvador#TornadoCash#Bitfinex#Cryptopia#SEC#ETFs#Germany#HAWK#Football#CathyWood#CryptoTrader#CryptoNews#Investments#MarketTrends#CryptoRegulation#Blockchain