#32894: isinstance() checks with non-configured LazySettings raise an exception.
-------------------------------------+-------------------------------------
     Reporter:  simon klemenc        |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Utilities            |                  Version:  3.2
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  lazyobject           |             Triage Stage:
  lazysettings                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by simon klemenc):

 Thanks for the response,

 the use case is a quite specific problem i encountered:

 
https://github.com/pyqtgraph/pyqtgraph/blob/4a921ddf7137c529ed033de6f933cf840f184776/pyqtgraph/__init__.py#L327

 here some kind of garbage-cleanup fails because isinstance(LazyConfig, XX)
 fails...

 To fix the tests, in the __class__ method the setup could be catched in a
 try/except.
 My personal feeling is that a type check should work always...?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32894#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.64d5af517bd224aedfe2cb77321ae814%40djangoproject.com.

Reply via email to