Quentin Gallet-Gilles wrote:
On Wed, Feb 20, 2008 at 9:25 PM, Brett Cannon email@example.com wrote:
On Feb 20, 2008 8:47 AM, M.-A. Lemburg firstname.lastname@example.org wrote:
How about using the following mapping:
urllib -> url.fetch urllib2 -> url.request
I can live with that. What do other people think?
I'm fine with it, if both packages are kept. But since it looks like urllib is considered inferior to urllib2, shouldn't it be possible to improve the latter (integrating whatever can be salvaged from urllib) and removing the former, in the spirit of Christian's suggestion ?
I wouldn't say it's inferior... it just uses a different approach (plug in handlers rather than overriding methods).
BTW: Google Code Search gives 10000 hits for "import urllib2" and 38100 for "import urllib".
I bet most just use urllib?.urlopen() anyway, without going into any of the details.