STINNER Victor <victor.stin...@gmail.com> added the comment: I tried my timestamp patch with _decimal: it fails because decimal and _decimal API is not exactly the same.
decimal.Decimal.__truediv__() has an optional context argument, whereas _decimal defines PyNumberMethods. decimal.Decimal.quantize() second argument is optional and its default value is None, but if I pass None to _decimal.Decimal.quantize(), I get a TypeError because _decimal expects an integer. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7652> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com