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
Sunset Blvd. (1950)
A screenwriter develops a dangerous relationship with a faded film star determined to make a...
Schizophrenia Mechanism
MechanismThe mechanisms of schizophrenia are unknown, and a number of models have been put...
Types of market-oriented environmental tools
Key points
The three main categories of market-oriented environmental policies are...
В порту. On the Waterfront. (1954)
В центре сюжета судьба простого докера - Терри Мэллоу, терзающегося сомнениями и решающего встать...
На игле. Trainspotting. (1996)
История четырёх друзей-наркоманов в Эдинбурге 1990-х годов. Кто-то из них пытается завязать, а...