cpython: 3119f08802a5 (original) (raw)

Mercurial > cpython

changeset 104366:3119f08802a5 2.7

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 4ed5f0e9bba2
children de13f5a0f4d5
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 @@ What's New in Python 2.7.13? Core and Builtins ----------------- +- Issue #26906: Resolving special methods of uninitialized type now causes

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

res = NULL; assert(PyTuple_Check(mro));