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

Резултати

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

Пребарај: #clients

当前筛选 #clients清除筛选
GitHub Trends

@githubtrending · Post #14935 · 09.07.2025 г., 13:30

#other#clients#mcp The Model Context Protocol (MCP) is an open standard that lets AI models easily and securely connect to different data sources and tools, making it much simpler for developers to build smart apps that can access files, databases, and APIs without custom code for each one[2][3][4]. There are many free and easy-to-use MCP clients—like desktop apps, web apps, and command-line tools—that let you quickly add new AI features and automate tasks, so you can get more done with less effort and technical hassle. This means you can use AI to help with coding, data analysis, and daily work, all while keeping your data safe and your setup flexible[2][3][4]. https://github.com/punkpeye/awesome-mcp-clients

djangoproject

@djangoproject · Post #327 · 30.04.2017 г., 01:28

https://www.tutorialspoint.com/python/python_networking.htm Python provides two levels of access to network services. At a low level, you can access the basic #socket support in the underlying operating system, which allows you to implement #clients and #servers for both connection-oriented and connectionless protocols.

Upwork Profile Mastery

@UpworkProfilePro · Post #568 · 19.02.2026 г., 09:52

Most freelancers fail before they even start… because they skip this one step! They rush into work without truly understanding the client’s needs. Knowing their goals helps you deliver exactly what they expect. Good communication builds trust and long-term relationships. 👉 What do you think? React if you agree. @UpworkProfilePro #Tipsoftheday#Clients#communication