[Python-bugs-list] [ python-Bugs-747320 ] rfc2822 formatdate functionality duplication
SourceForge.net
noreply@sourceforge.net
Mon, 02 Jun 2003 05:37:24 -0700
Bugs item #747320, was opened at 2003-06-02 01:18
Message generated for change (Comment added) made by bwarsaw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=747320&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Dalke (dalke)
Assigned to: Nobody/Anonymous (nobody)
Summary: rfc2822 formatdate functionality duplication
Initial Comment:
There are at least 4 places in the standard Python 2.3 library which
build an RFC 2822 formatted string:
rfc822.formatstring
email.Utils.formatdate
logging.handlers.SMTPHandler.date_time
BaseHTTPServer.HTTPServer.date_time_string
Looking at them, it makes sense to me to
- replace rfc822's implementation with email's
(that's the most flexible of the bunch)
- start a migration so that email uses the one
from rfc822, if available, else it's own implementation
(since email is distributed to older Pythons)
- have logging use the one in rfc822.
- have BaseHTTPServer use the one in rfc822
If this is deemed an appropriate change, I can send in
a patch.
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-06-02 08:37
Message:
Logged In: YES
user_id=12800
Personally, I'd like to see the email package's date formatting (and other
email related tasks) be the canonical standard, and for other modules to use
its rules when appropriate.
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-06-02 02:13
Message:
Logged In: YES
user_id=29957
It's not just formatdate - various email formatting tasks
are probably the
single largest source of duplication in the std library...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=747320&group_id=5470