#26287: SimpleLazyObject doesn't implement __radd__
-----------------------------+------------------------------------
     Reporter:  kezabelle    |                    Owner:  nobody
         Type:  New feature  |                   Status:  new
    Component:  Utilities    |                  Version:  master
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Accepted
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+------------------------------------

Comment (by Uran198):

 Replying to [comment:2 kezabelle]:
 > {{{
 > def lazy_consumer():
 >     # something more complex, obviously.
 >     return [1, 3, 5]
 > consumer = SimpleLazyObject(lazy_consumer)
 > }}}

 If you know what is the resulting type or possible resulting types of your
 expression, I think you better use `django.utils.functional.lazy` which
 will provide all the necessary methods.

--
Ticket URL: <https://code.djangoproject.com/ticket/26287#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.31c443c4febee2df56722e20fe8814fd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to