Used #Python metaclasses in anger yesterday -- as with most metaprogramming, usually a bad idea, but occasionally a huge boon.