Message 340690 - Python tracker

Message340690

Author piyush-kgp
Recipients piyush-kgp
Date 2019-04-23.05:56:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555998981.48.0.859846222459.issue36701@roundup.psfhosted.org>
In-reply-to
Content
The current way to use one of `urllib.request` APIs is like this:
```
import urllib.request
urllib.request.urlretrieve
```

Can we change this to:
```
import urllib
urllib.request.urlretrieve
```
This will require adding 1 line at https://github.com/python/cpython/blob/master/Lib/urllib/__init__.py

This is required because help on `urllib` says that `request` is part of `urllib` suggesting that `urllib.request` should be available if I `import urllib`.
Moreover `import urllib.request` is not at all intuitive.

I can submit a PR if other's think what I'm proposing makes sense.
History
Date User Action Args
2019-04-23 05:56:21piyush-kgpsetrecipients: + piyush-kgp
2019-04-23 05:56:21piyush-kgpsetmessageid: <1555998981.48.0.859846222459.issue36701@roundup.psfhosted.org>
2019-04-23 05:56:21piyush-kgplinkissue36701 messages
2019-04-23 05:56:21piyush-kgpcreate