Update of /cvsroot/python/python/dist/src/Lib/test/output In directory usw-pr-cvs1:/tmp/cvs-serv11715/Lib/test/output Modified Files: test_coercion Log Message: Use numbers that can be accurately represented on binary machines. I hope this works on all platforms. Index: test_coercion =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_coercion,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** test_coercion 2001/01/02 16:30:31 1.1 --- test_coercion 2001/01/03 01:52:11 1.2 *************** *** 12,27 **** 2 % 2 = 0 2 %= 2 => 0 ! 2 + 2.2 = 4.2 ! 2 += 2.2 => 4.2 ! 2 - 2.2 = -0.2 ! 2 -= 2.2 => -0.2 ! 2 * 2.2 = 4.4 ! 2 *= 2.2 => 4.4 ! 2 / 2.2 = 0.909090909091 ! 2 /= 2.2 => 0.909090909091 [...1404 lines suppressed...] divmod(None, <MethodNumber 1>) ... exceptions.TypeError ! divmod(None, <CoerceNumber 2>) ... exceptions.TypeError divmod(<MethodNumber 1>, 2) ... exceptions.TypeError ! divmod(<MethodNumber 1>, 4.0) ... exceptions.TypeError divmod(<MethodNumber 1>, 2) ... exceptions.TypeError ! divmod(<MethodNumber 1>, (2+0j)) ... exceptions.TypeError divmod(<MethodNumber 1>, [1]) ... exceptions.TypeError divmod(<MethodNumber 1>, (2,)) ... exceptions.TypeError divmod(<MethodNumber 1>, None) ... exceptions.TypeError divmod(<MethodNumber 1>, <MethodNumber 1>) ... exceptions.TypeError ! divmod(<MethodNumber 1>, <CoerceNumber 2>) ... exceptions.TypeError ! divmod(<CoerceNumber 2>, 2) = (1, 0) ! divmod(<CoerceNumber 2>, 4.0) = (0.0, 2.0) ! divmod(<CoerceNumber 2>, 2) = (1L, 0L) ! divmod(<CoerceNumber 2>, (2+0j)) = ((1+0j), 0j) ! divmod(<CoerceNumber 2>, [1]) ... exceptions.TypeError ! divmod(<CoerceNumber 2>, (2,)) ... exceptions.TypeError ! divmod(<CoerceNumber 2>, None) ... exceptions.TypeError ! divmod(<CoerceNumber 2>, <MethodNumber 1>) ... exceptions.TypeError ! divmod(<CoerceNumber 2>, <CoerceNumber 2>) = (1, 0)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4