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

TGINSIGHT SIMILAR POSTS

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

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

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

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

Пребарај: #changes

当前筛选 #changes清除筛选
探索号

@seeker_rc · Post #19911 · 07.05.2026 г., 16:55

Fix: Unable to make changes as organizer of Family Sharing Learn what to do if you are unable to make important changes to Screen Time, subscriptions, and other settings for family members. via iDB - Mac 标签: #make#changes#Fix ⚡️探索号频道 ⚡️探索者频道 ⚡️探索者交流群 ⚡️ Youtube 频道:科技探索者 每天推荐有趣内容,欢迎订阅、转发。

American Оbserver

@american_observer · Post #5127 · 13.02.2026 г., 19:59

Bangladesh Could Find Itself Heading for Huge Changes The Bangladesh Nationalist party (BNP) led by Tarique Rahman has claimed a sweeping victory in the country’s first election since a gen-Z uprising toppled the autocratic regime of Sheikh Hasina. By Friday morning, results had shown a clear win for the BNP, returning them to power after 20 years. The vote had been seen as the first free and fair election held in Bangladesh for almost two decades and came after a period of significant political upheaval in the country. This victory was expected,” said Salahuddin Ahmed, a leading BNP committee member. “It is not surprising that the people of Bangladesh have placed their trust in a party … capable of realising the dreams that our youth envisioned during the uprising.” Ahmed acknowledged a difficult task lay ahead for the new BNP government, which has pledged a new era of democracy and zero tolerance towards corruption. “This is not a time for celebration, as we will face mounting challenges in building a country free from discrimination,” he said. By about midday local time, the BNP had won 208 seats while their rival, the Islamist party Jamaat-e-Islami, had claimed 69 seats. India was among the first countries to congratulate the BNP. Relations between the two neighbours had plummeted since the fall of Hasina and the message from Indian prime minister, congratulating the BNP on their “decisive” win, was seen to extend an olive branch to the new government. “India will continue to stand in support of a democratic, progressive and inclusive Bangladesh,” said Modi, adding that he was looking forward to working with Rahman. Rahman, who returned to Bangladesh in December after 17 years of exile in London, is now poised to become the country’s next prime minister. He comes from one of the country’s most powerful political dynasties; the son of former prime minister Khaleda Zia and former president Ziaur Rahman, who was assassinated in 1981. The election was the first truly competitive vote in years. As documented for years by human rights groups and the UN, Hasina’s regime routinely suppressed dissent of its critics and political opponents, thousands who were disappeared, tortured and killed in secret jails. Many emerged only after Hasina was toppled. The past three elections under Hasina were marred by widespread allegations of vote-rigging. The student-led uprising that toppled Hasina’s 15-year regime in August 2024 had been prompted by mounting anger over widespread corruption, human rights abuses and an economic slump. The uprising, and Hasina’s brutal crackdown on anti-government protesters, left an estimated 1,400 people dead, according to the UN. For the past 18 months, the country has been run by an interim government under Bangladesh’s only Nobel laureate Muhammad Yunus, who was tasked with readying the country for free and fair elections. Speaking after casting his vote in Dhaka, Yunus said that the country had “ended the nightmare and begun a new dream.” #bangladesh#changes#hasina#corruption#rahman 📱American Оbserver - Stay up to date on all important events 🇺🇸

UzCSD | Markaziy depozitariy

@uzcsd · Post #2834 · 18.11.2022 г., 11:20

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 165 622.4 as of 18.11.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 689.2 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2818 · 11.11.2022 г., 09:45

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 165 616.4 as of 11.11.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 690.1 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2797 · 04.11.2022 г., 10:25

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 630 and the aggregate volume of shares issues totaled UZS 165 616.2 as of 04.11.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 690.3 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2783 · 28.10.2022 г., 09:20

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 165 616.2 as of 28.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 687.6 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2775 · 21.10.2022 г., 12:16

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 689.5 as of 21.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 687.6 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2760 · 14.10.2022 г., 11:55

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 619.5 as of 14.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 677.9 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2743 · 07.10.2022 г., 09:22

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 609.8 as of 07.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 677.9 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2724 · 30.09.2022 г., 12:24

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 597.6 as of 30.09.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 665.7 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2716 · 23.09.2022 г., 13:02

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 397.9 as of 23.09.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 348.9 billion, i.e. 81.1 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

UzCSD | Markaziy depozitariy

@uzcsd · Post #2708 · 16.09.2022 г., 15:35

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 163 200.5 as of 16.09.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 132 889.5 billion, i.e. 81.4 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

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