On 3/21/07, Aahz <[EMAIL PROTECTED]> wrote: > Maybe so, but this would massively break my company's application, if we > were actually using new-style classes and the built-in super(). We have > a web application that commonly passes all form fields down as **kwargs; > the application uses lots of mixin classes with identically-named > methods. We have a home-brew super() that crawls the stack.
For what? > Call me a strong -1 on this now that JP has explained what it does. I > can't believe we're the only people doing this. I guess it doesn't > matter as much for 3.0 because we're probably going to have to do a > massive rewrite for that, anyway. (This codebase started in 1.4 and > we're still running against 2.2.) But my take is that this is still an > ugly fix. A trivial fix to get the behavior you want is to introduce a new class Object that all your company's classes derive from which has an __init__ that ignores its arguments and does nothing. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com