Re: [Python-Dev] Not backporting PEP 3115 (metaclass __prepare__)

2008-03-21 Thread Guido van Rossum
On Tue, Mar 18, 2008 at 10:14 PM, Jack Diederich [EMAIL PROTECTED] wrote: We can't backport the __prepare__ syntax without requiring metaclass definition on the 'class' line. Because the __metaclass__ definition can be at the end of the class in 2.6 we can't find it until after we execute

[Python-Dev] Not backporting PEP 3115 (metaclass __prepare__)

2008-03-18 Thread Jack Diederich
We can't backport the __prepare__ syntax without requiring metaclass definition on the 'class' line. Because the __metaclass__ definition can be at the end of the class in 2.6 we can't find it until after we execute the class and that is too late to use a custom dictionary. I wish I had thought