On Sun, 2007-12-02 at 20:44 -0800, SmileyChris wrote:
> I tried actually using lazy today for something and couldn't get it to
> work.
> It seems to me that the current implementation is basically broken.
> 
> For example, I was trying to do lazy(my_function, list)
> __proxy__.__init__ tries to setattr(self, k, [promise]), but that
> won't actually work for any magic methods, because they need to be
> class methods.
> 
> After hacking around with it a bit and moving that code outside
> __init__, I got it to work.
> 
> Once it is working, it makes __repr__ work properly on lazy objects
> too (which probably is the solution to  that problem I was having with
> some new tests returning <django.utils.functional.__proxy__ object at
> 0x...>)!
> 
> In fact, the only easy way to tell that it isn't actually that object
> type is to test is_instance()
> 
> Has anyone else actually tried using this method before?

What method?

Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to