#30546: isinstance() call on SimpleLazyObject doesn't swallow evaluation exceptions on Python3. -------------------------------------+------------------------------------- Reporter: SÅ‚awek Ehlert | Owner: nobody Type: Bug | Status: closed Component: Utilities | Version: master Severity: Normal | Resolution: wontfix Keywords: SimpleLazyObject | Triage Stage: Accepted lazy evaluation | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by felixxm):
* status: new => closed * version: 2.2 => master * resolution: => wontfix * stage: Unreviewed => Accepted Comment: Thanks for the report. I was able to reproduce this issue, but to be honest Python3 behavior looks more correctly to me. In both cases `isinstance()` evaluates an objects, so it is not a matter of laziness. We could accept this as a bug for Python2, but first of all this doesn't qualify for a backport and secondly fixing this on Python2 is not what you expect. -- Ticket URL: <https://code.djangoproject.com/ticket/30546#comment:3> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.2a17f0274801cd3fe2afe936809f921f%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.