[Python-checkins] r53998 - python/trunk/Misc/NEWS
jeremy.hylton
python-checkins at python.org
Tue Feb 27 19:33:32 CET 2007
Author: jeremy.hylton
Date: Tue Feb 27 19:33:31 2007
New Revision: 53998
Modified:
python/trunk/Misc/NEWS
Log:
Add news about changes to metaclasses and __bases__ error checking.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Tue Feb 27 19:33:31 2007
@@ -126,6 +126,13 @@
- 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
-------
More information about the Python-checkins
mailing list