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

Пребарај: #coastline

当前筛选 #coastline清除筛选
Amazing Geography 🌍

@amazingeo · Post #239 · 15.09.2025 г., 03:12

🌍 Some coastlines in Alaska lose up to 20 meters of land each year from a mix of sea ice loss, stronger storms, and thawing ground, making it one of the fastest-eroding coastlines worldwide. ✨ #erosion⚡#coastline⚡#climate⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #394 · 20.10.2025 г., 12:31

🌍 Some sea stacks—towering rock columns near coastlines—form when waves erode cliffs, leaving only isolated pillars. Ireland’s Dun Briste sea stack stands 50 meters above the Atlantic. ✨ #coastline⚡#erosion⚡#geology⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #238 · 15.09.2025 г., 00:12

🌍 Salt marshes along coastlines act as natural buffers, soaking up floodwaters and trapping sediment. These unique habitats store carbon more efficiently than most forests. ✨ #coastline⚡#wetlands⚡#oceans⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #579 · 16.01.2026 г., 12:31

🌍 The Skeleton Coast of Namibia is lined with thousands of shipwrecks, fog, and shifting dunes. Its wild shores are shaped by powerful winds and one of the world’s strongest ocean currents. ✨ #coastline⚡#desert⚡#ocean⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #700 · 24.04.2026 г., 20:31

🌍 The White Cliffs of Dover are made of tiny sea fossils compressed over millions of years. Each cliff face erodes by about one centimeter per year as waves steadily wear them down. ✨ #coastline⚡#erosion⚡#fossils⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #126 · 27.08.2025 г., 13:12

🌍 Fjords are steep coastal valleys carved by glaciers and flooded by the sea. Norway’s fjords stretch over 1,100 kilometers, creating some of the world’s longest and deepest inlets. ✨ #fjords⚡#coastline⚡#glaciers⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #318 · 01.10.2025 г., 12:31

🌍 The Wadden Sea along Europe’s North Sea coast is the world’s largest tidal mudflat system. Twice daily, the sea retreats for kilometers, revealing vast sandbanks and rich habitats for millions of migratory birds. ✨ #coastline⚡#tides⚡#wildlife⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #660 · 13.03.2026 г., 20:31

🌍 Satellite data show that global sea levels are now rising about 3.4 millimeters per year, speeding up since the 1990s and threatening low-lying coasts with accelerated erosion. ✨ #coastline⚡#climate⚡#change⚡#oceans⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #164 · 02.09.2025 г., 20:12

🌍 The longest sandy beach in the world stretches about 254 kilometers along Bangladesh’s Cox’s Bazar coast, forming a natural barrier that shelters inland areas from powerful ocean storms. ✨ #coastline⚡#beach⚡#landforms⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #659 · 12.03.2026 г., 20:31

🌍 Some coasts shine with glowing “blue waves” at night, caused by tiny plankton called dinoflagellates emitting light when disturbed—a dazzling phenomenon known as marine bioluminescence. ✨ #seas⚡#coastline⚡#bioluminescence⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #357 · 10.10.2025 г., 20:31

🌍 Some coastal sea cliffs are so high they have their own weather. At Kalaupapa in Hawaii, cliffs rise over 600 meters, trapping clouds and channeling winds along the shoreline. ✨ #coastline⚡#seas⚡#cliffs⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​