summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-27 05:06:21 (GMT)
committerGitHub <noreply@github.com>2018-01-27 05:06:21 (GMT)
commita49ac9902903a798fab4970ccf563c531199c3f8 (patch)
tree56390f8d6849446b23d3d2a152c6197fc724ae70 /Objects/bytesobject.c
parent85527cf50a9a4eecaca4022f7c6cb9e0bae1fa5f (diff)
downloadcpython-a49ac9902903a798fab4970ccf563c531199c3f8.zip
cpython-a49ac9902903a798fab4970ccf563c531199c3f8.tar.gz
cpython-a49ac9902903a798fab4970ccf563c531199c3f8.tar.bz2
bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index a921d9c..c358756 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2459,6 +2459,8 @@ bytes_methods[] = {
_Py_isalnum__doc__},
{"isalpha", (PyCFunction)stringlib_isalpha, METH_NOARGS,
_Py_isalpha__doc__},
+ {"isascii", (PyCFunction)stringlib_isascii, METH_NOARGS,
+ _Py_isascii__doc__},
{"isdigit", (PyCFunction)stringlib_isdigit, METH_NOARGS,
_Py_isdigit__doc__},
{"islower", (PyCFunction)stringlib_islower, METH_NOARGS,