Skip to content

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

@ZuoyunZheng

Description

@ZuoyunZheng

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions