[issue35329] Documentation - capitalization issue
New submission from Hans Strijker <hans@stry.org>: In the documentation I noticed "from Package import specific_submodule". I recon package should be all lowercase in accordance with pep8. (https://www.python.org/dev/peps/pep-0008/#package-and-module-names) It may be far from the most important bug ever, but it's my first bug reported, and gotta start small... :-) https://docs.python.org/3/tutorial/modules.html#importing-from-a-package 6.4.1. Importing * From a Package ... Remember, there is nothing wrong with using from Package import specific_submodule! In fact, this is the recommended notation unless the importing module needs to use submodules with the same name from different packages. ---------- assignee: docs@python components: Documentation messages: 330537 nosy: Strijker, docs@python priority: normal severity: normal status: open title: Documentation - capitalization issue versions: Python 3.7 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
Cheryl Sabella <cheryl.sabella@gmail.com> added the comment: Hi Hans, Would you be interested in making a pull request with this change? Thanks! ---------- nosy: +cheryl.sabella stage: -> needs patch type: -> enhancement versions: +Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
Utkarsh Gupta <guptautkarsh2102@gmail.com> added the comment: Hey, I'd be happy to submit one :) ---------- nosy: +utkarsh2102 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
Change by Utkarsh Gupta <guptautkarsh2102@gmail.com>: ---------- keywords: +patch pull_requests: +12929 stage: needs patch -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
Benjamin Peterson <benjamin@python.org> added the comment: New changeset ee0309f3d83ab9ffa02542bcf45ece84f4fb265e by Benjamin Peterson (Utkarsh Gupta) in branch 'master': closes bpo-35329: Change 'Package' to 'package' in accordance with PEP8. (GH-13008) https://github.com/python/cpython/commit/ee0309f3d83ab9ffa02542bcf45ece84f4f... ---------- nosy: +benjamin.peterson resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +12941 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +12942 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 3e5c4a7c804c3ad76a558e5463655c329aee6437 by Miss Islington (bot) in branch '2.7': closes bpo-35329: Change 'Package' to 'package' in accordance with PEP8. (GH-13008) https://github.com/python/cpython/commit/3e5c4a7c804c3ad76a558e5463655c329ae... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 4b5340bb634be2ee2a40242cdf4e3f7a0b6c757a by Miss Islington (bot) in branch '3.7': closes bpo-35329: Change 'Package' to 'package' in accordance with PEP8. (GH-13008) https://github.com/python/cpython/commit/4b5340bb634be2ee2a40242cdf4e3f7a0b6... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue35329> _______________________________________
participants (5)
-
Benjamin Peterson
-
Cheryl Sabella
-
Hans Strijker
-
miss-islington
-
Utkarsh Gupta