mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Implements issue #9951: Adds a hex() method to bytes, bytearray, & memoryview.
Also updates a few internal implementations of the same thing to use the new built-in code. Contributed by Arnon Yaari.
This commit is contained in:
parent
644adc6ada
commit
8cb6569fe1
15 changed files with 112 additions and 64 deletions
|
|
@ -659,7 +659,7 @@ plain ol' Python and is guaranteed to be available.
|
|||
|
||||
>>> import builtins
|
||||
>>> tests = doctest.DocTestFinder().find(builtins)
|
||||
>>> 790 < len(tests) < 800 # approximate number of objects with docstrings
|
||||
>>> 790 < len(tests) < 810 # approximate number of objects with docstrings
|
||||
True
|
||||
>>> real_tests = [t for t in tests if len(t.examples) > 0]
|
||||
>>> len(real_tests) # objects that actually have doctests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue