[Python-3000] Metaclass syntax?

Bill Birch birchb at tpg.com.au
Mon May 1 12:50:08 CEST 2006


This has probably been proposed before, here goes anyhow. 

instead of:

   class TheLarch(deciduous)
       __metaclass__ = KindsOfTrees

could we have this syntax:

   class[KindsOfTrees]  TheLarch(deciduous):
	   pass

more real examples:

   class[interface] iterable: pass

   class[Persistent] Customer: pass

er, that's it.

-- 
http://billbirch.wordpress.com/


More information about the Python-3000 mailing list