cpython: d24f1467a297 (original) (raw)

Mercurial > cpython

changeset 104368:d24f1467a297

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:28:25 +0300
parents 696851f38c93(current diff)888a26fac9d2(diff)
children 085944763f3a
files Misc/NEWS
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 @@ What's New in Python 3.7.0 alpha 1 Core and Builtins ----------------- +- Issue #26906: Resolving special methods of uninitialized type now causes

--- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2914,11 +2914,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