homepage

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.

Author vstinner
Recipients Alexander.Belopolsky, Arfrever, belopolsky, eric.smith, loewis, mark.dickinson, pitrou, skrah, vstinner
Date 2012年01月31日.12:00:25
SpamBayes Score 4.0050974e-10
Marked as misclassified No
Message-id <CAMpsgwagRdhaav6JamVHYbbxF7ddG7tpzjRv7O4tdahqH5kbqw@mail.gmail.com>
In-reply-to <CAP7h-xYZWhrDSfzb9RLKhFiX9dLHfLPtUmaiqpp2wCVOD5fCfQ@mail.gmail.com>
Content
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));
Files
File name Uploaded
time_decimal-6.patch vstinner, 2012年01月31日.12:00:21
History
Date User Action Args
2012年01月31日 12:00:28vstinnersetrecipients: + vstinner, loewis, mark.dickinson, belopolsky, pitrou, eric.smith, Arfrever, skrah, Alexander.Belopolsky
2012年01月31日 12:00:25vstinnerlinkissue13882 messages
2012年01月31日 12:00:25vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /