Ian Bicking: the old part of his blog

Comment

Hmm, this looks familiar... have you seen my Python Cookbook recipe that does more-or-less the same thing?

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/160164

You can't (realistically) do anything about __bases__ in 2.2.X. You can in 2.3 because I wrote __bases__ changing code to support exactly this...
Comment on Metaclass fun
by Michael Hudson