On 6/5/08, Bill Page <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 5, 2008 at 1:18 PM, William Stein wrote: > > OK, I have to come clean and admit that already actually knew > > all about metaclasses, but considered using them this way so > > unnatural and ugly that I would not recommend it. > > > > > Do you still consider the example code like that given above by > Gonzalo "unnatural and ugly"? It seems like pretty standard Python to > me. There of course various ways of packaging the metaclass machinery > to provide an even cleaner user interface.
I do think my code (as posted) is "unnatural and ugly". Just an example, not even a class. I'd really love to figure out a proper model of parent-element relationship using metaclasses, etc. I tried very hard (several times) to find such a model, or at least "a cleaner user interface", and I played with some interesting ideas but cooked no cake. Maybe you have some cool ideas on how one can make this work (and appealing to others). > category) and category. Metaclasses are a good match for Categories. Also cool. I remember I was hit by the python version of a few of the paradoxes in early days set thery. YMMV. Best, Gonzalo --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---