[Python-checkins] r55055 - peps/trunk/pep-3129.txt

collin.winter python-checkins at python.org
Tue May 1 21:08:40 CEST 2007


Author: collin.winter
Date: Tue May  1 21:08:28 2007
New Revision: 55055

Modified:
   peps/trunk/pep-3129.txt
Log:
Add an additional motivation for class decorators.

Modified: peps/trunk/pep-3129.txt
==============================================================================
--- peps/trunk/pep-3129.txt	(original)
+++ peps/trunk/pep-3129.txt	Tue May  1 21:08:28 2007
@@ -33,10 +33,12 @@
 expressed and less reliant on implementation details of the CPython
 interpreter.  While it is possible to express class decorator-like
 functionality using metaclasses, the results are generally
-unpleasant and the implementation highly fragile [#motivation]_.  The
-fact that large-scale Python projects like Zope were going through
-these wild contortions to achieve something like class decorators won
-over the BDFL.
+unpleasant and the implementation highly fragile [#motivation]_.  In
+addition, metaclasses are inherited, whereas class decorators are not,
+making metaclasses unsuitable for some, single class-specific uses of
+class decorators. The fact that large-scale Python projects like Zope
+were going through these wild contortions to achieve something like
+class decorators won over the BDFL.
 
 
 Semantics


More information about the Python-checkins mailing list