bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)

This commit is contained in:
INADA Naoki 2018-01-27 14:06:21 +09:00 committed by GitHub
parent 85527cf50a
commit a49ac99029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 110 additions and 2 deletions

View file

@ -659,7 +659,7 @@ plain ol' Python and is guaranteed to be available.
>>> import builtins
>>> tests = doctest.DocTestFinder().find(builtins)
>>> 790 < len(tests) < 810 # approximate number of objects with docstrings
>>> 800 < len(tests) < 820 # 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