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 слични објави

Пребарај: #iis

当前筛选 #iis清除筛选
Embassy of Russia in Singapore

@rusembsg · Post #4291 · 24.10.2025 г., 04:19

🗓 On October 20-22, Deputy Russian Foreign Minister Sergey Vershinin, heading the Russian interagency delegation, took part in the 10th Singapore International Cyber Week and the Special Session of the ASEAN Ministerial Conference on Cybersecurity with Dialogue Partners held within its framework. Participants of the event emphasized the importance of recognizing the global nature of growing threats in the digital environment. The results of the now-concluded UN Open-Ended Working Group (#OEWG) focused on the security of and in the use of information and communications technologies (ICT) were highly commended. A commitment was expressed to work jointly within the framework of the forthcoming Permanent Global Mechanism on ICT Security and Responsible State Behaviour in Cyberspace, which will replace the OEWG. The signing of the UN Convention against Cybercrime in Hanoi, Viet Nam (October 25-26), was noted as an important milestone. On the sidelines of the Forum, DFM Vershinin held bilateral meetings with UN Under-Secretary-General and High Representative for Disarmament Affairs, Izumi Nakamitsu, Singapore’s Minister of State for Foreign Affairs and Trade & Industry, Gan Siow Huang, Permanent Secretary of the Ministry of Foreign Affairs of Singapore, Albert Chua, Chief Executive of the Cyber Security Agency of Singapore David Koh, Permanent Representative of Singapore to the UN, Burhan Gafoor, and Head of the Cyber Defense and Security Division of the Ministry of Foreign Affairs of Brazil, Larissa Calza. The meetings and bilateral contacts confirmed ASEAN countries’ receptiveness to the key elements of Russia’s approaches to international information security (#IIS). In particular, Russia’s arguments were supported regarding the central role of the UN in the negotiation process on ICT security issues, including artificial intelligence, as well as the need to develop legally binding norms to prevent and resolve conflicts in cyberspace based on the principles of sovereign equality and non-interference in the internal affairs of states.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1911 · 22.10.2025 г., 18:27

🗓 On October 20-22, Deputy Russian Foreign Minister Sergey Vershinin, heading the Russian interagency delegation, took part in the 10th Singapore International Cyber Week and the Special Session of the ASEAN Ministerial Conference on Cybersecurity with Dialogue Partners held within its framework. Participants of the event emphasized the importance of recognizing the global nature of growing threats in the digital environment. The results of the now-concluded UN Open-Ended Working Group (#OEWG) focused on the security of and in the use of information and communications technologies (ICT) were highly commended. A commitment was expressed to work jointly within the framework of the forthcoming Permanent Global Mechanism on ICT Security and Responsible State Behaviour in Cyberspace, which will replace the OEWG. The signing of the UN Convention against Cybercrime in Hanoi, Viet Nam (October 25-26), was noted as an important milestone. On the sidelines of the Forum, DFM Vershinin held bilateral meetings with UN Under-Secretary-General and High Representative for Disarmament Affairs, Izumi Nakamitsu, Singapore’s Minister of State for Foreign Affairs and Trade & Industry, Gan Siow Huang, Permanent Secretary of the Ministry of Foreign Affairs of Singapore, Albert Chua, Chief Executive of the Cyber Security Agency of Singapore David Koh, Permanent Representative of Singapore to the UN, Burhan Gafoor, and Head of the Cyber Defense and Security Division of the Ministry of Foreign Affairs of Brazil, Larissa Calza. The meetings and bilateral contacts confirmed ASEAN countries’ receptiveness to the key elements of Russia’s approaches to international information security (#IIS). In particular, Russia’s arguments were supported regarding the central role of the UN in the negotiation process on ICT security issues, including artificial intelligence, as well as the need to develop legally binding norms to prevent and resolve conflicts in cyberspace based on the principles of sovereign equality and non-interference in the internal affairs of states.

Hashtags

MDC Uzbekistan

@mdcuzbekistan · Post #651 · 04.02.2023 г., 15:47

.NET loyihalari, windows server, domain integratsiya Oramizdagi barcha .NET ahli qanday qilib api yozishni biladilar. Yoki umuman bir loyihani "loyiha" qilishni uddalaydilar. Ammo u bitganidan so'ng uni serverga qo'yish haligacha muammo bo'lib kelmoqda. Keling, ushbu muammoni yengilgina hal qilishni o'rganamiz. Yani windows server va domain sotib olib, ularni loyihamiz bilan integratsiya qilamiz. Aytgancha, SSL muammolari ham bor. Barchasini bitta qilib, bir darsda namoyish qilishga harakat qilamiz. Bu safargi speaker - kamina, Muhammadkarim. Barchangizni ushbu mahorat darsida kutib qolamiz. Kirsangiz xursand bo'lamiz, kirmasangiz hafa bo'lish yo'q ) Sana: 5-fevral, 20:00 Havola: Zoom Speaker: Muhammadkarim To'xtaboyev #iis#windowsserver#domain#hosting .NET Uzbekistan Community ➖➖➖➖➖➖➖➖➖➖ Telegram | Instagram | Youtube