This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients berker.peksag, brett.cannon, martin.panter, orsenthil, piyush-kgp
Date 2019-04-23.17:08:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556039309.39.0.317427172926.issue36701@roundup.psfhosted.org>
In-reply-to
Content
I'm -1 on pulling `request` up to implicitly be part of the `urllib` namespace without an import. `os.path` is the only exception that I know of in the stdlib and that's historical (it predates packages existing in the language). Otherwise the proposed change is suggesting that we automatically import all submodules to the top of a package which is expensive (as Martin pointed out), and simply not how Python's import is meant to be used.

And the statement that "`request` is part of `urllib`" is true today, just like saying any submodule is part of a package. If that wording is confusing then a PR to tweak the wording could be considered.

Since there are 3 core devs who are against this idea I'm closing this as "not a bug". Thanks for the idea regardless, Piyush!
History
Date User Action Args
2019-04-23 17:08:29brett.cannonsetrecipients: + brett.cannon, orsenthil, berker.peksag, martin.panter, piyush-kgp
2019-04-23 17:08:29brett.cannonsetmessageid: <1556039309.39.0.317427172926.issue36701@roundup.psfhosted.org>
2019-04-23 17:08:29brett.cannonlinkissue36701 messages
2019-04-23 17:08:29brett.cannoncreate