#36810: SimpleLazyObject.__repr__ causes infinite recursion when setup function
is
a bound method
-------------------------------------+-------------------------------------
Reporter: Sean Reed | Owner: Sean Reed
Type: Bug | Status: closed
Component: Core (Other) | Version: 6.0
Severity: Release blocker | Resolution: fixed
Keywords: LazyNonce, csp, | Triage Stage: Ready for
SimpleLazyObject | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by nessita <124304+nessita@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"8e4b531111ddd3256c45eee601947e475651e8e7" 8e4b531]:
{{{#!CommitTicketReference repository=""
revision="8e4b531111ddd3256c45eee601947e475651e8e7"
Fixed #36810 -- Avoided infinite recursion in SimpleLazyObject.__repr__().
Detect when `SimpleLazyObject._setupfunc` is a bound method of the same
instance to use a safe representation and avoid infinite recursion.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36810#comment:16>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019b51786b00-dac78e02-426f-482f-b552-94ee5220c82e-000000%40eu-central-1.amazonses.com.