[Python-checkins] cpython: comparing on number of cpus makes more sense

benjamin.peterson python-checkins at python.org
Wed Aug 3 01:22:51 CEST 2011


http://hg.python.org/cpython/rev/ff8565022f18
changeset: 71710:ff8565022f18
user: Benjamin Peterson <benjamin at python.org>
date: Tue Aug 02 18:22:30 2011 -0500
summary:
 comparing on number of cpus makes more sense
files:
 Modules/posixmodule.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4947,7 +4947,7 @@
 if (!res) \
 return NULL; \
 } \
- if (Py_TYPE(right) != &cpu_set_type || left->size != right->size) { \
+ if (Py_TYPE(right) != &cpu_set_type || left->ncpus != right->ncpus) { \
 Py_DECREF(res); \
 Py_INCREF(Py_NotImplemented); \
 return Py_NotImplemented; \
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /