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

Резултати

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

Пребарај: #cameras

当前筛选 #cameras清除筛选
Mappasaurus Official Channel

@mappasaurusofficial · Post #251 · 06.04.2025 г., 14:17

🌇 City life moves fast, with new businesses opening and streets changing daily. Traditional#maps🗺 rely on slow update cycles, so they struggle to keep pace. This outdated information can leave you feeling lost, wasting precious time. 🦖 At#Mappasauruswe utilize the collective power of crowdsourcing by connecting#camerasintegrated with#AI, constantly feeding the latest information on new businesses, road closures, and anything else that changes in the city. With eyes of the#networkeverywhere, you'll always have access to the most updated information. It's a map built for the people, by the people. Join us to explore and be part of the community that's redefining the future of maps. 👀Follow us on: Twitter|Instagram|Medium|Youtube|Linkedin| Facebook| Threads| Mastodon

Libreware

@libreware · Post #1541 · 10.02.2026 г., 21:04

Super Bowl Ad TRICKING You Into Welcoming Surveillance State! During the Super Bowl, you may have seen a commercial for #Amazon’s #Ring “Search Party” feature, which uses an emotional lost-dog story to encourage adoption of participation in what amounts to a widespread neighborhood #surveillance net. Jimmy points out that the ad masks #privacy risks tied to AI-driven #cameras, data sharing, and Amazon’s broader surveillance ecosystem, including concerns about opt-out defaults and government access. He and Americans’ Comedian Kurt Metzger expand the discussion into a broader critique of social media and smart devices as tools of self-surveillance, suggesting public safety and convenience are being used to justify constant monitoring. Ultimately, it frames the commercial as emblematic of a growing surveillance state presented as benevolent technology. https://www.youtube.com/watch?v=5AJtRDjoXN4 #why

Venture Village Wall 🦄

@venturevillagewall · Post #3558 · 20.12.2024 г., 09:32

Hohem Raises $13.76M Hohem secures $13.76 million funding in a round closing on December 12, 2024. The brand specializes in AI tracking gimbals for both consumers and professionals, offering stabilizers for smartphones and cameras. Learn more here #Funding#Gimbals#AI#Video#Smartphone#Camera#Stabilizers#Tech#Innovation#Cameras#ConsumerElectronics#ProfessionalGear