➜

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.

作者 pitrou
收信人 barry, pitrou, r.david.murray
日期 2010-09-15.19:05:22
SpamBayes Score 0.002688462
Marked as misclassified 否
Message-id <1284577524.51.0.954157890746.issue9864@psf.upfronthosting.co.za>
In-reply-to
内容
They both return raw tuples, which are not very intuitive to interpret:

>>> email.utils.parsedate_tz("Wed, 15 Sep 2010 09:53:50 -0700 (PDT)")
(2010, 9, 15, 9, 53, 50, 0, 1, -1, -25200)

It would be much better if they returned some kind of namedtuple, which would preserve backwards compatibility but with much better readability and usability.

Note that parsedate() could also return the existing time.struct_time type (which is compatible with a 9-tuple):
http://docs.python.org/library/time.html#time.struct_time
历史
日期 用户 动作 参数
2010-09-15 19:05:24pitrou修改recipients: + pitrou, barry, r.david.murray
2010-09-15 19:05:24pitrou修改messageid: <1284577524.51.0.954157890746.issue9864@psf.upfronthosting.co.za>
2010-09-15 19:05:23pitrou链接issue9864 messages
2010-09-15 19:05:22pitrou创建