TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #widgets

当前筛选 #widgets清除筛选
HiShoot2i Templates

@hishoot2imaterial · Post #2599 · 12.05.2025 г., 15:29

⚡️ Giveaway Time! 🎁 🚀 We're giving away 25 promo codes for Photo Widget Pro25 lucky winners will be chosen in 24 hours. Eligibility: - You must be a member of: ~ @AppsLab_Co ~ @popMODS ~ @popmodschat - How to redeem codes? - Click here Notes and warns: - Please don't forget to rate and comment the app(s) after you redeemed. - You have 24 hours to get your code from the bot, later then, you won't get your code even if you won. - Anyone who joins only for the giveaway and leaves the channel immediately after the giveaway is over will be banned indefinitely. It does not matter when you leave. 🏷 Tags: #Android#Widgets#Giveaway

Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #602 · 26.04.2025 г., 18:31

Widgets Pro- Nothing inspired Widgets ✍️ Details: - Version: 1.1.8 ⬇️ Download : Here 📔 Source : Here 📸 Screenshots : Here 👨‍💻 Support Group : Here ✍️ Note: - Minimum sdk is 14. - If you are unable to give necessary permissions, go app info > 3 dot menu & allow restricted access from there. 😎 Developer : @tpk53 | @RedSkulxHYDRA 💬 Community: @Nothing_Archive 🔖 Tags : #CommunityProject#App#Widgets#Nothing

Venture Village Wall 🦄

@venturevillagewall · Post #4339 · 08.03.2025 г., 13:00

Top 5 Insights from Trendoscope Lab 1️⃣ a16z's new report reveals top B2C AI apps by traffic differ from revenue leaders like photo and video editors. Read more 2️⃣ Google launches AI Mode with Gemini, initially for Google One subscribers, enhancing AI SEO relevance. Details here 3️⃣ Short drama apps surge with 221% annual growth in downloads, affecting traditional streamers like Netflix and Disney+ that declined by 35%. Insight found here 4️⃣ Google and Meta enable developers to access cameras on XR devices, easing previous privacy restrictions. More info and here 5️⃣ Google enhances Android widget visibility with new filters and dedicated pages. Learn more #AI#Google#Tech#Streaming#XR#Investments#B2C#Apps#VideoEditing#Photos#Dramas#SEO#Privacy#Android#Widgets#Investing#VC#a16z#Trends#Innovation

GitHub Trends

@githubtrending · Post #15204 · 08.10.2025 г., 11:30

#java#cloud#coap#dashboard#iot#iot_analytics#iot_platform#iot_solutions#java#kafka#lwm2m#microservices#middleware#mqtt#netty#platform#snmp#thingsboard#visualization#websockets#widgets ThingsBoard is an open-source IoT platform that helps manage and analyze data from connected devices. It allows users to collect data, create real-time dashboards, and automate tasks using a powerful rule engine. This platform supports various protocols like MQTT and HTTP, making it easy to connect devices. Users can also define relationships between devices and assets, and trigger alarms based on specific conditions. The benefit is that it simplifies IoT project development, making it scalable and efficient for applications like smart farming, smart offices, and more. https://github.com/thingsboard/thingsboard