#30546: SimpleLazyObject not so lazy on Python3
-------------------------------------+-------------------------------------
     Reporter:  Sławek Ehlert        |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Utilities            |                  Version:  2.2
     Severity:  Normal               |               Resolution:
     Keywords:  SimpleLazyObject     |             Triage Stage:
  lazy evaluation                    |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Sławek Ehlert):

 To add more info. The behaviour of the example I gave is actually more
 nuanced than I thought. The function actually does get called on both
 Python 2 and 3. I've added a simple {{{print("inside a_func")}}} inside
 that function and it turns out it gets printed in both cases. The
 exception however occurs only on Python 3 and it seems it's... getting
 swallowed by {{{isinstance}}} on Python 2 (?). IDK.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30546#comment:2>
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/063.f3f96230c8def80bb26269129987bd53%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to