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

Резултати

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

Пребарај: #playintegrity

当前筛选 #playintegrity清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #475 · 22.11.2024 г., 06:31

Google's Play Integrity policy is making it harder to use custom ROMs. If you can't access banking apps or payments, it's time to take action! 🔑 What is a Keybox? When using a custom ROM, some apps won’t work due to security checks (Strong Integrity). A keybox acts as a fake certificate to trick apps into thinking your phone is unmodified, allowing apps like banking apps to work. Modules like TrickyStore can be used along with keyboxes to bypass these restrictions. However, keyboxes are being abused in certain ways: - Shared publicly or checked via bots, leading to revocations. - Scammers sell fake or leaked keyboxes. - Genuine users who need keyboxes for essential apps are losing access. ❗️Precautions: - Don't use keyboxes for flexing unless your important work apps really need it. Stick with Device Integrity, it makes no difference. - Avoid sharing them publicly or checking them via keybox checker bots in telegram. These get forwarded to the hosters in some cases! - Stop checking for Integrity via multiple apps / playstore repeatedly. You should not bother until your apps stop working. - Use alternative apps when possible. Please do remember that any keybox made public or being used in bulk would trigger the failsafe and Goolag would eventually ban it! 🚨✍️Sign the Petition✍️🚨: https://www.change.org/p/stop-google-from-limiting-custom-roms @alph4 is working to take legal action against Google through Antitrust and consumer protection agencies in the European Union over the issue of Google Play Integrity! "We ask Google to change its Play Integrity implementation, allowing Custom ROMs to pass Play Integrity so the users can enjoy their device's capabilities fully" ✅ To-Do List: • Sign and verify your signature via email auth. • Share how experience regarding how Play Integrity affects your custom ROM experience with respect to apps. • Spread the word to friends and other groups. Forwarding this post can also help. Thanks for your attention and support! A community post made on behalf of @Nothing_Archive & @Crosscrew Federation #Keybox#PlayIntegrity#Petition#StrongIntegrity#CustomROM#AndroidFreedom#DigitalRights