On Aug 20, 2008, at 6:32 AM, [EMAIL PROTECTED] wrote:
> > seems your baseclass is oldstyle class, not inheriting 'object'. > python 2.5 newstyle classes (off object) has that __subclasses__() > classmethod (see dir(type)), not sure if 2.4 has that at all. > i've no idea where these are explained (as well as mro() and other > type' stuff.) > > > i looked a bit at the src and i have a may be related question: > why, once a instrumentation (descriptor) is installed on some class X > attribute xyz, the same descriptor has to be installed on all > subclasses of it? > getattr( some_subclass_of_X, 'xyz') would return it anyway? if you look closely you'll see that the InstrumentedAttribute has state which is specific to the actual mapper in use. Try commenting it out and see which tests break (theres a few for that specifically). > if it is to allow diff subclasses to have diff. instrumentation, why > it has to be triggered by the base class and not by mapper? > and if that is because the subclass may have no mapper... what it has > to do with SA then? mostly with construction of expressions, like Cls.foobar == 5 types of things. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
