The attached patch fixes math.ceil to delegate to x.__ceil__() if it is defined, according to PEP 3141, and adds tests to cover the new cases. Patch is against r57303. No new test failures are introduced. Keir -------------- next part -------------- A non-text attachment was scrubbed... Name: ceil.diff Type: text/x-patch Size: 1880 bytes Desc: not available Url : http://mail.python.org/pipermail/python-3000/attachments/20070822/6654ccee/attachment-0001.bin