mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-33073: Adding as_integer_ratio to ints. (GH-8750)
This commit is contained in:
parent
83df50ea57
commit
5ac704306f
8 changed files with 108 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue