[New-bugs-announce] [issue24274] erroneous comments in dictobject.c

Jim Jewett report at bugs.python.org
Sun May 24 06:49:12 CEST 2015

New submission from Jim Jewett:


The comments near lookdict suggest that specialized versions such as lookdict_unicode and lookdict_unicode_nodummy cannot return NULL, as that would indicate an Exception was raised during comparison.

They can return NULL, because if the *search* key is not unicode, they replace themselves with the generic lookdict and then return its result, which may be NULL.

components: Interpreter Core
messages: 243968
nosy: Jim.Jewett
priority: normal
severity: normal
status: open
title: erroneous comments in dictobject.c
type: enhancement

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list