[Python-Dev] new metaclass error condition checks (original) (raw)

Armin Rigo arigo at tunes.org
Tue Apr 24 11:32:39 CEST 2007


Hi Jean-Paul,

On Mon, Apr 16, 2007 at 06:53:20PM -0400, Jean-Paul Calderone wrote:

I just noticed r53997 (from some unit tests it broke), which disallowed things like this:

class X(object): def repr(self): return "blah" class Y(X, type): pass class Z: metaclass = Y

This is now valid again: I reverted r53997, as I got no answer to http://mail.python.org/pipermail/python-dev/2007-March/071796.html .

A bientot,

Armin.



More information about the Python-Dev mailing list