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: email.Utils.formatdate documetaion missing
Type: Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: nirs, skip.montanaro
Priority: normal Keywords:

Created on 2005-07-17 09:09 by nirs, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25828 - (view) Author: Nir Soffer (nirs) * Date: 2005-07-17 09:09
email.Utils.formatdate documentation does not mention that 
'usegmt' keyword argument is new on Python 2.4.

reference:
http://python.org/doc/2.4.1/lib/module-email.Utils.html
http://python.org/doc/2.3.5/lib/module-email.Utils.html

I don't know if its the rule, but usually the docs warn about new 
additions, and its very important when you try to create code that 
should work on multiple Python versions.

Suggested fix
replace:
"Optional usegmt is a flag that when True, outputs a date string with 
the timezone as an ascii string GMT, rather than a numeric -0000. 
This is needed for some protocols (such as HTTP). This only applies 
when localtime is False"

with:
"Optional usegmt is a flag that when True, outputs a date string with 
the timezone as an ascii string GMT, rather than a numeric -0000. 
This is needed for some protocols (such as HTTP). This only applies 
when localtime is False. New in Python 2.4."
msg25829 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-07-17 11:50
Logged In: YES 
user_id=44345

Fixed in 2.4 and CVS docs.  Thanks.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42196
2005-07-17 09:09:40nirscreate