@talks · Post #192 · 15.08.2017 г., 13:30
@talks#cntrlYourLife#responsibility
Hashtags
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
Пребарај: #responsibility
@talks · Post #192 · 15.08.2017 г., 13:30
@talks#cntrlYourLife#responsibility
Hashtags
@talks · Post #299 · 06.07.2018 г., 19:59
Collar of a slave is always lighter than a warrior's armor. #freedom#discipline#responsibility@talks
@ekologuzenglish · Post #11063 · 05.01.2026 г., 01:02
🏢 The State Duma warns residents about the risk of rodent infestations 🐀 If there are no cats in the basements, “attacking wildlife” can appear. By sealing vents and boarding up basements, management companies violate government regulations and common sense. Vladimir Burmatov, First Deputy Chairman of the State Duma Committee on Ecology, noted that this does not help residents — on the contrary, it creates a threat. It is important for cats to have a safe place to shelter from the cold and naturally control rodent populations. Protect your homes and the environment! 🐾 #Ecology#AnimalProtection#Responsibility#RodentControl ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.
@ekologuzenglish · Post #11053 · 03.01.2026 г., 08:04
❗️ Attention! Animal Cruelty Alert In Uzbekistan, cases of intentional harassment of birds, including falcons, have been reported on social media by Instagram users under the account @ake.falcon1. These actions occur not in the wild, but in suburban and residential areas where people, children, and domestic animals are present. ✅ Key points: This is not hunting and not a tradition, but deliberate cruelty. Such actions pose a danger to animals and people alike. 📌 Legislation: According to the Law of the Republic of Uzbekistan “On the Protection and Use of the Animal World” (Art. 43) and Cabinet of Ministers’ regulations, as of January 1, 2025, it is prohibited to: Keep any species of falconiform birds (Clause 35) Use them for harassment Publish videos showing acts of violence Violation of these norms constitutes a direct breach of the law. ⚠️ Calls to action: Notify the National Committee for Ecology and Climate Change Engage law enforcement to assess the offenders’ actions Raise public awareness about legal responsibility 🔴 Important: Public cruelty must not go unpunished. Ignoring it today shifts the boundaries of what is acceptable tomorrow. 💡 Respect for animals is a hallmark of a civilized society. Everyone is responsible for preventing violence. #Ecology#AnimalProtection#Responsibility#Uzbekistan#PR#SocialAwareness☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.
@ekologuzenglish · Post #11165 · 12.01.2026 г., 08:02
🌱 Falsification in the “Green Space” Project and the Question of Responsibility! In the Yakkabog district of Qashqadaryo region, as part of the “Green Space 2025” project, unsown tree seedlings were entered into the electronic platform as planted, which distorts the official reports. Instead of fairly implementing the wise environmental policy of our respected President, some managers intimidated employees, artificially inflating the numbers: as a result, it appears that 70–80% more trees were added in the green area. According to the whistleblower, the head of the Yakkabog district ecology department handed over the electronic platform key to the municipal improvement employees, which allowed incorrect data about the trees to be entered. The actions of Y. Jumayev should be thoroughly investigated by the Committee on Ecology, and the managers involved in the falsification should be held accountable. 🌿 Protecting nature is the responsibility not only of employees but of society as a whole! #GreenSpace#Ecology#Qashqadaryo#Responsibility#Justice#SaveNature ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube