➜

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.

作者 vstinner
收信人 Alexander.Belopolsky, Arfrever, belopolsky, eric.smith, loewis, mark.dickinson, pitrou, skrah, vstinner
日期 2012-01-31.12:00:25
SpamBayes Score 4.0050974e-10
Marked as misclassified 否
Message-id <CAMpsgwagRdhaav6JamVHYbbxF7ddG7tpzjRv7O4tdahqH5kbqw@mail.gmail.com>
In-reply-to <CAP7h-xYZWhrDSfzb9RLKhFiX9dLHfLPtUmaiqpp2wCVOD5fCfQ@mail.gmail.com>
内容
Patch version 6:

 - timestamp format is now a type instead of a string, e.g. time.time(int)
 - add int and datetime.timedelta formats, remove timespec format
 - complete the documentation
 - fix integer overflows, convert correctly time_t to PyLong

There are now 5 timestamp formats:

 - int
 - float
 - decimal.Decimal
 - datetime.datetime
 - datetime.timedelta

I consider the patch as ready to be commited, or at least ready for a
review ;-) There is no more FIXME or known limitation. Well, now the
most important part is to decide the API and the list of timestamp
formats.

The patch should be tested on Linux, FreeBSD and Windows, 32 and 64
bits to check assertions on type sizes:

assert(sizeof(clock_t) <= sizeof(size_t));
assert(sizeof(LONGLONG) <= sizeof(size_t));
assert(sizeof(time_t) <= sizeof(PY_LONG_LONG));
文件
文件名 上传时间
time_decimal-6.patch vstinner, 2012-01-31.12:00:21
历史
日期 用户 动作 参数
2012-01-31 12:00:28vstinner修改recipients: + vstinner, loewis, mark.dickinson, belopolsky, pitrou, eric.smith, Arfrever, skrah, Alexander.Belopolsky
2012-01-31 12:00:25vstinner链接issue13882 messages
2012-01-31 12:00:25vstinner创建