TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #199 · 8 јан.

Многие из тех кто активно работал с Python2 несколько удивлены, почему в Python3 удобная функция reload() переехала из builtin в imp а потом и в importlib? Ну было же удобно! А теперь лишний импорт😖 Дело в том, что начиная с Python3.3 функция reload() переписана на Python вместо Cи. Что это нам даёт? 🔸 Такой код проще поддерживать и развивать 🔸 Python код легче читать, изучать и понимать. Сравните это ➡️ и это ➡️. 🔸 Как результат пункта 2, проще писать свои расширения импорта. Например, пользовательский импортёр с какой-либо хитрой логикой по аналогии с импортом из zip архивов. А есть ли у этого решения недостатки? Да, они всегда есть. 🔹 Так как это не builtin функция, её следует импортнуть перед использованием 🔹 Скорость замедлилась примерно на 5%. Очевидно, что это совершенно не критично. К тому же от версии к версии логика импорта будет оптимизироваться и ускоряться. В самом начале файла importlib/__init__.py мы видим такой импорт: import _imp # Just the builtin component, NOT the full Python module То есть часть функционала по прежнему написана на Си, но достаточно низкоуровневая. #basic

Hashtags

Резултати

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

Пребарај: #civilization

当前筛选 #civilization清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #587 · 19.08.2025 г., 03:22

🌎 The Caral civilization in Peru built the oldest known city in the Americas around 2600 BCE. Its pyramid complexes predate the Inca by millennia and show early urban planning, trade, and communal gatherings long before written history in the region. ✨ #history⚡#archaeology⚡#civilization 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #874 · 07.10.2025 г., 20:11

🌎 The mysterious Harappan city of Dholavira, in India’s Gujarat region, features an intricate water management system with reservoirs, underground drains, and stone-lined wells. Archaeologists date the city from 3000 BCE to 1500 BCE and note its unique use of stepwells and multi-level reservoirs for collecting and distributing scarce water in the desert. ✨ #archaeology⚡#civilization⚡#mystery 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #410 · 24.10.2025 г., 12:31

🌍 The boundaries of ancient Mesopotamia shifted as rivers changed course, causing cities to move or vanish. River geography shaped the rise and fall of some of history’s earliest civilizations. ✨ #historicalgeography⚡#rivers⚡#civilization⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1121 · 11.12.2025 г., 22:11

🌎 Massive underground chambers beneath the ancient city of Derinkuyu in Turkey could shelter up to 20,000 people. This multi-level complex includes ventilation shafts, stables, kitchens, wells, and a school. Archaeologists believe it was carved from soft volcanic rock over 2,000 years ago to protect residents from invasions. ✨ #archaeology⚡#civilization⚡#Turkey 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #678 · 31.03.2026 г., 20:31

🌍 The lost city of Cahokia once stood near present-day St. Louis, with earthen mounds and a population rivaling European cities around 1100 CE—making it North America’s largest urban center before Columbus. ✨ #historicalgeography⚡#archaeology⚡#civilization⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Environment & Climate Change

@Enviro_Climate · Post #372 · 18.09.2021 г., 13:21

Sea Secrets - Arash Sharifi Arash Sharifi, a Ph.D. candidate of marine geology and geophysics at the UM Rosenstiel School, takes us into the compelling world of #paleoclimate research. By using climate, #historical, and #archeological records, Sharifi shows how climate change has been affecting the world since the beginning of human #civilization. @Enviro_Climate https://youtu.be/ovy-57jx85Q?t=3

Yukiokhruner

@yukiokhruner · Post #52 · 01.08.2022 г., 10:04

L'esigenza spontanea di uno spazio sacro sembra essere venuta meno nell'ultima forma della nostra civiltà #vaporonda#vaporwave#vapourwave#vaporart#seapunk#webpunk#glitch#glitchart#glitchartistscollective#chillwave#aesthetic#vaporwaveaesthetic#vaporwaveaesthetics#malinconia#melancholy#civiltà#civilization#egemonia#hegemony#sacro#sacred#suora#nun