[Python-checkins] bpo-32357: Use PySet_GET_SIZE macro in _is_coroutine() from _asynciomodule.c (#4990)
Yury Selivanov
webhook-mailer at python.org
Sat Dec 23 15:06:49 EST 2017
https://github.com/python/cpython/commit/0f47fa2c89a6b9a04969219dfb0c3801c611e3ca
commit: 0f47fa2c89a6b9a04969219dfb0c3801c611e3ca
branch: master
author: Andrew Svetlov <andrew.svetlov at gmail.com>
committer: Yury Selivanov <yury at magic.io>
date: 2017-12-23T15:06:46-05:00
summary:
bpo-32357: Use PySet_GET_SIZE macro in _is_coroutine() from _asynciomodule.c (#4990)
files:
M Modules/_asynciomodule.c
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c
index 25acd552b18..d626127699a 100644
--- a/Modules/_asynciomodule.c
+++ b/Modules/_asynciomodule.c
@@ -138,7 +138,7 @@ _is_coroutine(PyObject *coro)
return is_res_true;
}
- if (PySet_Size(iscoroutine_typecache) < 100) {
+ if (PySet_GET_SIZE(iscoroutine_typecache) < 100) {
/* Just in case we don't want to cache more than 100
positive types. That shouldn't ever happen, unless
someone stressing the system on purpose.
More information about the Python-checkins
mailing list