The last of the PEP 3108 (standard lib reorg) changes landed for the first beta, so urllib is now a package of assorted URL related modules.

>>> import urllib
>>> help(urllib)
Help on package urllib:

NAME
    urllib

FILE
    /home/ncoghlan/devel/py3k/Lib/urllib/__init__.py

PACKAGE CONTENTS
    error
    parse
    request
    response
    robotparser

DATA
    __package__ = None


>>> import urllib.request
>>> opener = urllib.request.FancyURLopener({})

(Hmm pydoc shouldn't be displaying __package__ as a DATA entry, since PEP 361 means that all modules now have it by default... issue 3190 created for that)

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to