bpo-33073: Adding as_integer_ratio to ints. (GH-8750)

This commit is contained in:
Lisa Roach 2018-09-13 23:56:23 -07:00 committed by Raymond Hettinger
parent 83df50ea57
commit 5ac704306f
8 changed files with 108 additions and 2 deletions

View file

@ -665,7 +665,7 @@ plain ol' Python and is guaranteed to be available.
True
>>> real_tests = [t for t in tests if len(t.examples) > 0]
>>> len(real_tests) # objects that actually have doctests
8
9
>>> for t in real_tests:
... print('{} {}'.format(len(t.examples), t.name))
...
@ -675,6 +675,7 @@ plain ol' Python and is guaranteed to be available.
2 builtins.float.hex
1 builtins.hex
1 builtins.int
3 builtins.int.as_integer_ratio
2 builtins.int.bit_length
1 builtins.oct