diff --git a/Demo/metaclasses/index.html b/Demo/metaclasses/index.html index 52d52e9fd01..b87d2c2f292 100644 --- a/Demo/metaclasses/index.html +++ b/Demo/metaclasses/index.html @@ -25,6 +25,15 @@

(A.k.a. The Killer Joke :-)

about it -- in fact, it is rather elegant and deep, even though there's something dark to it.) +

(On first reading, you may want to skip directly to the examples in +the section "Writing Metaclasses in Python" below, unless you want +your head to explode.) (XXX I should really restructure this document +to place the historic notes last. After 1.5a4 is released...) + +

+ +


+

Documentation of the Don Beaudry hook has purposefully been kept minimal, since it is a feature of incredible power, and is easily abused. Basically, it checks whether the type of the base @@ -148,6 +157,10 @@

(A.k.a. The Killer Joke :-)

HREF="http://www.digicool.com/papers/ExtensionClass.html" >Extension Classes for more information. +

+ +


+

Writing Metaclasses in Python

In Python 1.5, the requirement to write a C extension in order to @@ -502,6 +515,8 @@

Real-life Examples

as well. This needs more research. Perhaps a metaclass could be provided that allows stackable wrappers... +

+


Things You Could Do With Metaclasses