On Jan 15, 2008 1:27 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Second, a "metaclass" to add a number of methods (or other attributes) > > to an existing class, using a convenient class notation: > > I think this is similar to my "partial" classes: > > http://pypi.python.org/pypi/partial
Indeed it is. I guess my only innovation is realizing that you don't have to create a real metaclass -- you can set __metaclass__ to a function that does the magic. I like your feature of refusing overrides unless flagged with @replace. I think that despite the objection that monkeypatching shoudn't be made too easy, it's worth at looking into a unification of the API, features, and implementation. -- --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