mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00

PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
51 lines
697 B
Text
51 lines
697 B
Text
test_augassign
|
|
6
|
|
[6]
|
|
6
|
|
[1, 2, 3, 4, 1, 2, 3, 4]
|
|
[1, 2, 1, 2, 3]
|
|
True
|
|
True
|
|
True
|
|
11
|
|
True
|
|
12
|
|
True
|
|
True
|
|
13
|
|
__add__ called
|
|
__radd__ called
|
|
__iadd__ called
|
|
__sub__ called
|
|
__rsub__ called
|
|
__isub__ called
|
|
__mul__ called
|
|
__rmul__ called
|
|
__imul__ called
|
|
__div__ called
|
|
__rdiv__ called
|
|
__idiv__ called
|
|
__floordiv__ called
|
|
__rfloordiv__ called
|
|
__ifloordiv__ called
|
|
__mod__ called
|
|
__rmod__ called
|
|
__imod__ called
|
|
__pow__ called
|
|
__rpow__ called
|
|
__ipow__ called
|
|
__or__ called
|
|
__ror__ called
|
|
__ior__ called
|
|
__and__ called
|
|
__rand__ called
|
|
__iand__ called
|
|
__xor__ called
|
|
__rxor__ called
|
|
__ixor__ called
|
|
__rshift__ called
|
|
__rrshift__ called
|
|
__irshift__ called
|
|
__lshift__ called
|
|
__rlshift__ called
|
|
__ilshift__ called
|