[Python-bugs-list] [ python-Bugs-753617 ] dump_address_pair in email._parseaddr appears to be missing

SourceForge.net noreply@sourceforge.net
Fri, 13 Jun 2003 14:16:53 -0700


Bugs item #753617, was opened at 2003-06-12 19:12
Message generated for change (Comment added) made by bwarsaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=753617&group_id=5470

Category: Python Library
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Eric Huss (ehuss)
Assigned to: Nobody/Anonymous (nobody)
Summary: dump_address_pair in email._parseaddr appears to be missing

Initial Comment:
The _parseaddr module in the email module references a 
function called dump_address_pair on line 445.  This 
function lives in Utils.py and is not imported.  Thus if you 
try to do a str() of an AddressList object, it fails with a 
NameError.


----------------------------------------------------------------------

>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-06-13 17:16

Message:
Logged In: YES 
user_id=12800

Done in Python 2.3.

----------------------------------------------------------------------

Comment By: Eric Huss (ehuss)
Date: 2003-06-13 17:08

Message:
Logged In: YES 
user_id=393416

I was just checking/reviewing the code and noticed it.  
Getting rid of __str__ sounds fine to me...I wasn't using it for 
anything.



----------------------------------------------------------------------

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-06-13 17:04

Message:
Logged In: YES 
user_id=12800

Can you explain how you're getting an AddressList instance
from _parseaddr?  Both the _parseaddr module nor the
AddressList class should be considered private to the email
package. 

I'm more inclined to remove AddressList.__str__() since it
isn't used anywhere.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=753617&group_id=5470