#30309: Remove hasattr reference in One-to-One documentation example
-----------------------------------------+------------------------
               Reporter:  davidjb        |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Documentation  |        Version:  2.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  1
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 The One-to-One example of using `hasattr` to avoid exception handling is
 based on the side effect of `hasattr` swallowing all exceptions.  This was
 pre-Python 3.2 behaviour and has been changed to only suppress
 AttributeErrors as explained at https://bugs.python.org/issue9666.

 PR: https://github.com/django/django/pull/11159

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30309>
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/050.1bcac59655a644b1c3f4f13028d191b7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to