]> granicus.if.org Git - python/commitdiff
Add news about changes to metaclasses and __bases__ error checking.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 27 Feb 2007 18:33:31 +0000 (18:33 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 27 Feb 2007 18:33:31 +0000 (18:33 +0000)
Misc/NEWS

index c60cf39753f6cc627d14d32952b41d633ef3e3f7..4ef206aa7957793aa2d3b8ac1b4346787308d99d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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
 -------