Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Unified Diff: Objects/object.c

Issue 28866: Unexpected behavior resulting from mro() and __setattr__ in interactive mode
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Objects/object.c Mon Dec 05 18:23:27 2016 +0100
+++ b/Objects/object.c Mon Dec 05 22:44:10 2016 +0100
@@ -930,6 +930,8 @@
PyUnicode_InternInPlace(&name);
if (tp->tp_setattro != NULL) {
err = (*tp->tp_setattro)(v, name, value);
+ if (PyType_Check(v))
+ PyType_Modified((PyTypeObject*)v);
Py_DECREF(name);
return err;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+