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

Резултати

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

Пребарај: #metrics

当前筛选 #metrics清除筛选
TONlines – News

@tonlines · Post #7016 · 01.05.2025 г., 18:08

⚡️swap.coffee: Impressive April 2025 Metrics #swap#metrics Swap.coffee shared its growth metrics for April 2025, showing a transaction volume of nearly $18 million, 37,129 transactions, and 5,934 unique users. The team expresses gratitude for the ongoing support from their community. Source: link @tonlines

GitHub Trends

@githubtrending · Post #14948 · 11.07.2025 г., 12:30

#go#logging#metrics#opentelemetry#tracing OpenTelemetry-Go is a tool for Go applications that helps you track how your software performs by collecting data like traces and metrics, then sending this information to monitoring platforms so you can see what’s happening inside your app in real time[2][3][4]. It works on many operating systems and Go versions, and you can use it by adding a few lines of code to your app and setting up an exporter. This makes it much easier to find and fix problems, understand how your app is running, and keep everything reliable and fast[2][3][4]. https://github.com/open-telemetry/opentelemetry-go

Sliverkissの废弃文化研究所

@sliverkiss_blog · Post #390 · 04.07.2025 г., 12:32

Scripting 对接 ☁ Cloudflare Workers/Pages Functions Metrics 🙏 高产群友 001 的投稿 小组件参数: 第一行 email 第二行 accountId 第三行 global api token 文件见评论区 相关: Scriptable 版 🤭小组件合集🧐频道资源合集😄恰饭推荐💬群组 🥰#scripting#widget#小组件#cloudflare#cf#pages#workers#function#metrics#数据#统计#请求数

Venture Village Wall 🦄

@venturevillagewall · Post #4266 · 28.02.2025 г., 07:00

AI Predictions: From Vacuums to Real Impact AI-powered prediction platforms are gaining traction, with a focus on forecasting reactions based on content and audience. Initial predictions using tools like ChatGPT yield 17% accuracy, but considering audience interactions can boost accuracy to 83%. This innovative approach helped a startup refine its pitch to enter Y Combinator. Discover more insights on enhancing prediction accuracy in various fields here. #AI#Startup#Prediction#YCombinator#Marketing#Innovation#Tech#Growth#Entrepreneurship#Forecasting#AudienceAnalysis#DataScience#MachineLearning#Success#Business#Trends#Platforms#Metrics#Investment#VC