cpython: bbaf6c928526 (original) (raw)

Mercurial > cpython

changeset 104365:bbaf6c928526 3.5

Issue #26906: Resolving special methods of uninitialized type now causes implicit initialization of the type instead of a fail. [#26906]

Serhiy Storchaka storchaka@gmail.com
date Sat, 08 Oct 2016 12:24:09 +0300
parents 8d150de9edba
children 888a26fac9d2 ee049edc3fff
files Misc/NEWS Objects/typeobject.c
diffstat 2 files changed, 22 insertions(+), 5 deletions(-)[+] [-] Misc/NEWS 3 Objects/typeobject.c 24

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ Release date: TBA Core and Builtins ----------------- +- Issue #26906: Resolving special methods of uninitialized type now causes

--- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2869,11 +2869,25 @@ PyObject / Look in tp_dict of types in MRO */ mro = type->tp_mro;

res = NULL; /* keep a strong reference to mro because type->tp_mro can be replaced