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.

作者 Alexander.Belopolsky
收信人 Alexander.Belopolsky, ajaksu2, alanvgreen, amaury.forgeotdarc, guettli, josh-sf, sonderblade, tiktuk
日期 2010-04-20.16:02:17
SpamBayes Score 1.2633219e-05
Marked as misclassified
Message-id <1271779339.37.0.603568725323.issue1100942@psf.upfronthosting.co.za>
In-reply-to
内容
I am +1 for adding these features and I have only one comment on the code:

It is documented in time.strptime() documentation that
"""
The default values used to fill in any missing data when more accurate values cannot be inferred are (1900, 1, 1, 0, 0, 0, 0, 1, -1). 
""" http://docs.python.org/dev/py3k/library/time.html#time.strptime

and "datetime.strptime(date_string, format) is equivalent to datetime(*(time.strptime(date_string, format)[0:6]))." according to datetime module documentation.

Thus, datetime.strptime("", "") returning datetime.datetime(1900, 1, 1, 0, 0) is not an implementation detail and there is no need to compute it in time_strptime.
历史
日期 用户 动作 参数
2010-04-20 16:02:19Alexander.Belopolsky修改recipients: + Alexander.Belopolsky, guettli, amaury.forgeotdarc, sonderblade, alanvgreen, ajaksu2, josh-sf, tiktuk
2010-04-20 16:02:19Alexander.Belopolsky修改messageid: <1271779339.37.0.603568725323.issue1100942@psf.upfronthosting.co.za>
2010-04-20 16:02:17Alexander.Belopolsky链接issue1100942 messages
2010-04-20 16:02:17Alexander.Belopolsky创建