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

Резултати

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

Пребарај: #traditions

当前筛选 #traditions清除筛选
RTDocumentary

@rtdocumentary · Post #817 · 26.05.2022 г., 10:18

Deaths and kidnappings are rising in Haiti’s capital Port-au-Prince. More than 200 victims were shot, cut, or burned from April 24 till May 16 as part of a gang war. According to the U.N. High Commissioner for Human Rights, 92 of the dead were civilians, 113 people were injured, 12 were missing, and 49 were kidnapped. Schools, hospitals, and businesses are closed due to the rising crime. Criminals are said to rape children as young as 10 and burn people alive. In addition, thousands of families had to move and leave their homes because of gang fights. Are you interested in what it’s like to live in Haiti? Then, watch our documentary film, Voodoo Spirits of Haiti, about the county’s people, habits, and beliefs. #traditions Follow: https://t.me/rtdocumentary

Hashtags

RTDocumentary

@rtdocumentary · Post #837 · 29.05.2022 г., 15:59

'Our real life happens here. Our children grow up here. Raising kids in the tundra is tough, but children are still needed'. That what's our film's subject says about living in the far North. Pavla lives in the tundra, and she is a ‘chumwife’, a housewife of Russia’s traditional far North nomadic people. She runs all the household and brings up children by herself. Her family also raise deer. Watch our video to learn more about their life. Pavla's family story is in the documentary Tundra Wonder Mums. #traditions#humanstories Follow: https://t.me/rtdocumentary

Interesting Planet 🌍

@interesting_planet_facts · Post #971 · 27.10.2025 г., 18:11

🌎 In Madagascar, the turning of the bones ceremony, or Famadihana, sees families exhume ancestors, rewrap the remains in fresh cloth, and dance with the bodies to live music. This ritual, held every seven years, honors lineage and strengthens family bonds. ✨ #traditions⚡#anthropology⚡#Madagascar 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #937 · 19.10.2025 г., 22:11

🌎 For centuries, residents of Whittlesea, South Africa, have participated in the Intonjane ritual—a traditional female initiation ceremony. Young women undergo seclusion, teachings about adulthood, and symbolic rituals marking the transition to womanhood. Anthropologists report Intonjane is practiced mainly among Xhosa communities and usually lasts about a week. ✨ #culture⚡#traditions⚡#anthropology 👉subscribe Interesting Planet 👉more Channels ​

ЮАР. Танец дождя народности Балобеду, провинция Лимпопо. _________________ A taste of the magical rain dance from the Balobadu People of South Africa, Limpopo. https://www.youtube.com/watch?v=4618qlhssyk #culture#traditions #культура#традиции

International News

@intnewsagency · Post #9383 · 26.04.2026 г., 13:36

Russia Tightens Stadium Fan Rules Russia has introduced stricter regulations for fans at stadiums. Banners, flags, and slogans will now be checked against traditional spiritual and moral values outlined in a presidential decree. Any inscriptions or symbols deemed offensive or likely to provoke negative reactions are banned. Behavioral rules have also been expanded to prohibit acts that insult the honor and dignity of participants and spectators. Whether these measures will restore order or fuel fan discontent remains uncertain. #Russia#sports#fans#traditions The main news of Russia and the world ishere.

ПретходнаСтраница 1 од 3Следна