On Wed, 25 Jan 2006 11:46:09 -0600 Adrian Holovaty wrote: > If managers behaved like that, how would one do the equivalent of > get_object()?
... and get_values() (which doesn't fit the 'sets' paradigm at all, since it can contain duplicates)? The original proposal was only for model instance attributes as far as I understood it. This does bring up a problem with the proposal. The similarity between Foo.objects.get_list() and foo.get_bar_list() makes it strange and confusing for them to use different syntax, (as Joseph pointed out), but is it possible for them to use the same syntax? You would have to do away with anything that isn't 'set'-like. (I was just about to post something about the get_values() method and sets, until I realised the original proposal didn't include the manager methods, but I'm glad to see my nagging thoughts did have something behind them!). Luke -- "I have had a perfectly lovely evening. However, this wasn't it." (Groucho Marx) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/