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, Neil Muller, andersjm, belopolsky, davidfraser, hodgestar, tebeka, vstinner, werneck
日期 2010-02-18.22:58:01
SpamBayes Score 0.00019423652
Marked as misclassified
Message-id <1266533884.51.0.696693787224.issue2736@psf.upfronthosting.co.za>
In-reply-to
内容
Victor,

As you explain in your own documentation, the proposed method is equivalent to ``(time.mktime(self.timetuple()), self.microsecond)``, so all it does is replacing a less than a one-liner.  Moreover, I am not sure time.mktime(self.timetuple()) is something that people would want to do with a TZ-aware datetime.  If the tzinfo of the datetime object does not match the system TZ used by mktime, the result will be quite misleading.

On the patch itself:

1. See my comment at Issue1726687 about the tm_wday == 1 typo.

2. I don't think time_t to long cast is safe on all platforms.
历史
日期 用户 动作 参数
2010-02-18 22:58:05Alexander.Belopolsky修改recipients: + Alexander.Belopolsky, tebeka, davidfraser, belopolsky, andersjm, vstinner, werneck, hodgestar, Neil Muller
2010-02-18 22:58:04Alexander.Belopolsky修改messageid: <1266533884.51.0.696693787224.issue2736@psf.upfronthosting.co.za>
2010-02-18 22:58:02Alexander.Belopolsky链接issue2736 messages
2010-02-18 22:58:01Alexander.Belopolsky创建