Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion on whether or not to include __init__.py #4

Open
ZuoyunZheng opened this issue Mar 28, 2024 · 0 comments
Open

Confusion on whether or not to include __init__.py #4

ZuoyunZheng opened this issue Mar 28, 2024 · 0 comments

Comments

@ZuoyunZheng
Copy link

ZuoyunZheng commented Mar 28, 2024

Hi,
thanks for the tutorial. After reading the tutorial, i'm still quite confused on some things. So if i understood correctly, a namespace package does not have a __init__.py file. However, data-repos and data-repos-cars should not be namespace packages since they are "concrete" packages that are "part" of the namespace package? Therefore they each should include a __init__.py even if they're blanks? Obviously there is no __init__,py included currently and they still work, so my questions are:

  1. is my understanding correct wrt. __init__.py?
  2. does including __init__.py matter practically?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant