[Python-checkins] cpython: Split lookdict_unicode_nodummy() assertion to debug

victor.stinner python-checkins at python.org
Thu Sep 8 14:16:59 EDT 2016


https://hg.python.org/cpython/rev/19902d840448
changeset: 103331:19902d840448
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Sep 08 11:16:07 2016 -0700
summary:
 Split lookdict_unicode_nodummy() assertion to debug
Issue #27350.
files:
 Objects/dictobject.c | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -802,7 +802,8 @@
 return DKIX_EMPTY;
 }
 ep = &ep0[ix];
- assert(ep->me_key != NULL && PyUnicode_CheckExact(ep->me_key));
+ assert(ep->me_key != NULL);
+ assert(PyUnicode_CheckExact(ep->me_key));
 if (ep->me_key == key ||
 (ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
 if (hashpos != NULL)
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

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