Use of __init__.py file in Python Packages | Brief intro to Regular, namespace packages

preview_player
Показать описание
What is the use of __init__.py file in Python Packages. This question seems simple but has a few concepts like Regular and namespace packages that you might not be aware of.

Python Interview series:

In this video, I will discuss the use of __init__.py file in regular packages and in a future video we will dive deeper into namespace packages as well.

Topics covered:
1. What is the use of __init__.py file
2. Regular and namespace package brief overview
3. Using __all__ variable to control which files are to be included when importing all files from a package
4. A small demo of how __init__.py file is used in projects to do package initialization.

Timestamps:
0:00 - Introduction
0:47 - What is the use of __init__.py file
5:03 - Code examples

Connect with me on LinkedIn:
Рекомендации по теме
Комментарии
Автор

@coding with Roy bro using this method I can't import things between 'a' module in one folder and 'b' module in two folder

Dineshkumar-gpxs
Автор

hey bro
I will complete my Engineering in 2022 and just received TCS offer letter for ninja profile .
so can i give DCA assessment for upgrading my profile to digital cause many rumours are there that DCA over now there is no more DCA will conducted? And if so is there are any chances they will again resume it
Please reply

prethmeshkale
Автор

Can u make brief video on new procedure of tslp 2.0

fayazuddinshaik
Автор

BRO PLEASE DO VIDEO ON LATEST CHANGES IN TCS DIGITAL EXAM FORMAT

gandiharikrishna
Автор

Dada tumi alada kore Python er class korao?

gouravnandy