(original) (raw)
changeset: 103331:19902d840448 user: Victor Stinner victor.stinner@gmail.com date: Thu Sep 08 11:16:07 2016 -0700 files: Objects/dictobject.c description: Split lookdict_unicode_nodummy() assertion to debug Issue #27350. diff -r ada5620efd82 -r 19902d840448 Objects/dictobject.c --- a/Objects/dictobject.c Thu Sep 08 11:12:31 2016 -0700 +++ b/Objects/dictobject.c Thu Sep 08 11:16:07 2016 -0700 @@ -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) /victor.stinner@gmail.com