You know how crucial an __init__.py file is to creating packages in Python. But do you really need them to do so? The answer is not really. Python has both regular packages and namespace packages.
Since version 3.3+, Python supports creating packages without __init__.py file which was proposed in PEP 420.
PEP 420: https://peps.python.org/pep-0420/
✨More on 2MinutesPy👇👇
▶️What should you write into the __init__.py file? • What should you write into the __init...
▶️ Why __init__.py File is Used in Python Projects: • Why __init__.py File is Used in Pytho...
Subscribe to / @2minutespy for more such videos.
@2MinutesPy
#__init__ #init #coding #script #namespace #python #pythonprogramming #pythonpackage #package #2minutespy