diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 20:46:11 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 20:46:11 (GMT) |
| commit | 2e8474ddde61204b2671225cf4482dbc6fab4ea1 (patch) | |
| tree | 537985e9e76380ca0006ed0f7643591c9821a100 /Python/pystrcmp.c | |
| parent | 54e4ca76c9470b81e3ae72a23aac59907f633fe1 (diff) | |
| download | cpython-2e8474ddde61204b2671225cf4482dbc6fab4ea1.zip cpython-2e8474ddde61204b2671225cf4482dbc6fab4ea1.tar.gz cpython-2e8474ddde61204b2671225cf4482dbc6fab4ea1.tar.bz2 | |
Issue #18408: slot_tp_str() must not fallback on slot_tp_repr() on error
type->tp_str must not point to slot_tp_str() if type has no __str__ attribute,
so there is no reason for slot_tp_str() to fallback on slot_tp_str() on lookup
error. Moreover, calling PyErr_Clear() may hide a real bug like MemoryError.
If __str__ attribute is removed, slots must be updated (which is done by
type_setattro()).
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions
