cpython: 861ddad3e0c1 (original) (raw)

Mercurial > cpython

changeset 103470:861ddad3e0c1

Issue #25856: The __module__ attribute of extension classes and functions now is interned. This leads to more compact pickle data with protocol 4. [#25856]

Serhiy Storchaka storchaka@gmail.com
date Sat, 10 Sep 2016 00:53:02 +0300
parents a25c39873d93
children 66afc449efa9
files Misc/NEWS Objects/typeobject.c
diffstat 2 files changed, 19 insertions(+), 13 deletions(-)[+] [-] Misc/NEWS 3 Objects/typeobject.c 29

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.6.0 beta 1 Core and Builtins ----------------- +- Issue #25856: The module attribute of extension classes and functions

--- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -454,27 +454,30 @@ type_set_qualname(PyTypeObject *type, Py static PyObject * type_module(PyTypeObject *type, void *context) {

if (type->tp_flags & Py_TPFLAGS_HEAPTYPE) {

} static int