-
-
Notifications
You must be signed in to change notification settings - Fork 32k
"Modules" section in Tutorial contains incorrect description about __init__.py #81073
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
Comments
"Modules" section in the tutorial says that But, thanks to PEP-420, __init__.py is not required after Python 3.3. |
In my experience, beginners have enough trouble getting packages right without complicating the tutorial with a rarely-used advanced feature like namespace packages. I don't think this needs more than perhaps a footnote, if that. |
I agree that implicit namespace packages don't deserve more than a footnote in that page. However, since I often have to answer questions about packages, I'm thinking that perhaps it would be better to expand that page and maybe have a page dedicated to modules and one to packages, where PEP-420 and other common issues could be covered in more details. |
I think it is just a noise for the tutorial readers. I created a post about misunderstanding of PEP-420. How about adding note in top of the PEP-420 instead? .. note:: |
Rather than discussing namespace packages separately, how about just accurately stating the purpose and effects of
|
I don't think accuracy is not important for tutorial. |
fixed in #113209. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: