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 michael.foord
Recipients
Date 2004-09-17.22:10:53
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
>>> from urllib2 import urlopen
>>> a = urlopen('http://www.voidspace.org.uk')
>>> i = a.info()
>>> for entry in i: print entry
Traceback (most recent call last):
  File "<pyshell#11>", line 1, in -toplevel-
    for entry in i: print entry
  File "D:\PYTHON23\lib\rfc822.py", line 390, in 
__getitem__
    return self.dict[name.lower()]
AttributeError: 'int' object has no attribute 'lower'

Iterating over an rfc822 message (above done from 
urllib2) causes an exception. Could be fixed by returning 
an iter(self.dict) from the __iter__ method.

This bug looks similar to bug 1017329.
History
Date User Action Args
2007-08-23 14:26:19adminlinkissue1030125 messages
2007-08-23 14:26:19admincreate