Python defines two types of packages, regular packages and namespace packages. Regular packages are traditional packages as they existed in Python 3.2 and earlier. A regular package is typically implemented as a directory containing an __init__.py
file. When a regular package is imported, this __init__.py
file is implicitly executed, and the objects it defines are bound to names in the package’s namespace. The __init__.py
file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported.
Căutare
Chart
Categorii
- Arts
- Business
- Computers
- Jocuri
- Health
- Home
- Kids and Teens
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Citeste mai mult
Властелин колец: Возвращение короля. The Lord of the Rings: The Return of the King. (2003)
Повелитель сил тьмы Саурон направляет свою бесчисленную армию под стены Минас-Тирита, крепости...
Новый кинотеатр «Парадизо». Cinema Paradiso. (1988)
Это рассказ о счастливых днях, когда итальянское кино еще не знало о том, что такое «кризис...
Top 10 attractions in the Middle East
But did you know that the Middle East is made up of 14 different...
Command-and-control regulation
Key points
Command-and-control regulation sets specific limits for pollution...
Egypt
Egypt (Arabic: Yeghipet; مصر Misr/Miṣr [misʕɾ], masri مصر Masr/Maṣr [ˈmɑsʕɾ], Copt. Ⲭⲏⲙⲓ...