diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-02-27 18:33:31 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-02-27 18:33:31 (GMT) |
commit | cca75403c488c067eed2626446fa5d2dc6164b4f (patch) | |
tree | b120c6219590cf81ed99b7ef8581f6513a608695 | |
parent | fa955697fa0986b19abac7b026c8f00b4393adf9 (diff) | |
download | cpython-cca75403c488c067eed2626446fa5d2dc6164b4f.zip cpython-cca75403c488c067eed2626446fa5d2dc6164b4f.tar.gz cpython-cca75403c488c067eed2626446fa5d2dc6164b4f.tar.bz2 |
Add news about changes to metaclasses and __bases__ error checking.
-rw-r--r-- | Misc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -126,6 +126,13 @@ Core and builtins - Bug #1664966: Fix crash in exec if Unicode filename can't be decoded. +- Add new requirements for metaclasses. 1) If type or a subclass of type + occurs in __bases__, it must occur before any non-type bases, e.g. + before regular classes. 2) If you assign to __bases__, you may not + change the metaclass. Many more illegal assignments to __bases__ + are now checked and raise TypeErrors. This changed fixed at least + one known crash. + Library ------- |