Re: Partial Models Discussion

2008-05-23 Thread David Cramer
I would say it's not so much about the speed, but the memory overhead that is caused by creating these objects. On Fri, May 23, 2008 at 3:33 PM, Ken Arnold <[EMAIL PROTECTED]> wrote: > > On May 23, 2:29 pm, "Gary Wilson Jr." <[EMAIL PROTECTED]> wrote: > > However, one of the benefits of values()

Re: Partial Models Discussion

2008-05-23 Thread Ken Arnold
On May 23, 2:29 pm, "Gary Wilson Jr." <[EMAIL PROTECTED]> wrote: > However, one of the benefits of values() returning a dict is that you > avoid the more expensive model instance creation when you don't need it. I wouldn't be so quick to assume that creating model instances (or ducks that look li

Re: Partial Models Discussion

2008-05-23 Thread David Cramer
Nope it's just something I was throwing around. What would exclude do in that example? I feel it should be explicit rather than implicit (although I do see the reason for implicit calls where you don't want to return text/blob fields, but explicit is always better). On Fri, May 23, 2008 at 3:18 P

Re: Partial Models Discussion

2008-05-23 Thread Gary Wilson Jr.
David Cramer wrote: > IMO show() and hide() are extremely ugly. And I think .values() is becoming > ugly with the addition of values_tuple or whatever it's called. I don't see > a real good reason to clutter the namespace even more than it already is. > I'd rather have .values(type=dict) or someth

Re: Partial Models Discussion

2008-05-23 Thread David Cramer
IMO show() and hide() are extremely ugly. And I think .values() is becoming ugly with the addition of values_tuple or whatever it's called. I don't see a real good reason to clutter the namespace even more than it already is. I'd rather have .values(type=dict) or something similar. On Fri, May 23,

Re: Partial Models Discussion

2008-05-23 Thread Gary Wilson Jr.
David Cramer wrote: > I'd like to present my concept for partial models, which would be an > attempt to replace the use of .values() returning a dictionary > (although .values() still has uses if you dont actually want an > instance). Keep in mind, the way I'm presenting this would keep #17 > work

Re: Partial Models Discussion

2008-05-06 Thread David Cramer
Sort of, although I'm going to go against Adrian on the hide() method (I'd rather be explicit than implicit). On Tue, May 6, 2008 at 8:46 PM, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On Wed, May 7, 2008 at 11:35 AM, David Cramer <[EMAIL PROTECTED]> wrote: > > > > I'd like to present my

Re: Partial Models Discussion

2008-05-06 Thread Russell Keith-Magee
On Wed, May 7, 2008 at 11:35 AM, David Cramer <[EMAIL PROTECTED]> wrote: > > I'd like to present my concept for partial models, which would be an ... > When the proxy is instanced, we would identify which fields are > currently available, and map those in. We would also similarly make > sure a

Partial Models Discussion

2008-05-06 Thread David Cramer
I'd like to present my concept for partial models, which would be an attempt to replace the use of .values() returning a dictionary (although .values() still has uses if you dont actually want an instance). Keep in mind, the way I'm presenting this would keep #17 working :) values, values_tuple,