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.

classification
Title: urllib incomplete and urllib2 does not exist
Type: Stage:
Components: Windows Versions: Python 3.0
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, vizcayno
Priority: normal Keywords:

Created on 2008-07-18 18:53 by vizcayno, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg69974 - (view) Author: vizcayno (vizcayno) Date: 2008-07-18 18:53
I am under Win XP sp 3:
After importing urllib it only shows a few objects when using dir() 
urllib2 module does not exist.

.python
Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC v.1500 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> dir(urllib)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__pa
th__']
>>> import urllib2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named urllib2
>>>
msg69976 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-07-18 18:56
This is expected. (Most of) the content of Python 2's urllib and urllib2
modules is now in the urllib.request submodule.  Look at the
documentation in http://docs.python.org/dev/3.0/library/urllib.request
for more details.
msg69982 - (view) Author: vizcayno (vizcayno) Date: 2008-07-18 19:22
Thanks Georg.
Python 3.0b2 on line manual continues indicating with explanation and 
some examples that import urllib and import urllib2 are valid. Do you 
recommend me to open another issue about this?
Regards.
msg69983 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-07-18 19:26
Yes, but you can also post them here, I'll fix it ASAP.
msg69985 - (view) Author: vizcayno (vizcayno) Date: 2008-07-18 19:41
Ok.

In the python 3.0b2 on line documentation that comes with the .msi 
installer:

1) Search with word urllib and access the fourth line found: "urllib — 
Open arbitrary resources by URL" 

2) Search with word urllib2 and select first line found: urllib2 — 
extensible library for opening URLs.

In these cases documentation refers to 3.0b1, I must say.

Many thanks for your attention and guidelines.
msg69990 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-07-18 21:19
I see. The CHM file includes some old files that weren't cleaned up
after the urllib and urllib2 modules were removed. This should be fixed
for the coming releases.
History
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47658
2008-07-18 21:19:52georg.brandlsetmessages: + msg69990
2008-07-18 19:41:18vizcaynosetmessages: + msg69985
2008-07-18 19:26:51georg.brandlsetmessages: + msg69983
2008-07-18 19:22:21vizcaynosetmessages: + msg69982
2008-07-18 18:56:14georg.brandlsetstatus: open -> closed
resolution: not a bug
messages: + msg69976
nosy: + georg.brandl
2008-07-18 18:53:37vizcaynocreate