[Python-3000] [PATCH] Fix math.ceil() behaviour for PEP3141

Keir Mierle mierle at gmail.com
Thu Aug 23 01:58:28 CEST 2007


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 


More information about the Python-3000 mailing list