#36810: SimpleLazyObject.__repr__ causes infinite recursion when setup function
is
a bound method
-------------------------------------+-------------------------------------
Reporter: Sean Reed | Owner: Sean Reed
Type: Bug | Status: assigned
Component: Core (Other) | Version: 6.0
Severity: Release blocker | Resolution:
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
-------------------------------------+-------------------------------------
Comment (by nessita <124304+nessita@…>):
In [changeset:"165c3599965e63f88649a46fcc2ff681c52f2f66" 165c359]:
{{{#!CommitTicketReference repository=""
revision="165c3599965e63f88649a46fcc2ff681c52f2f66"
Refs #36810 -- Avoided infinite recursion in LazyNonce.__repr__().
Moved nonce generation in ``django.utils.csp.LazyNonce`` to a function
to avoid infinite recursion in ``SimpleLazyObject.__repr__`` for
unevaluated instances.
Co-authored-by: Natalia <[email protected]>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36810#comment:15>
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/0107019b51786ae9-21fbb4c8-741f-44dd-b362-de36ff084947-000000%40eu-central-1.amazonses.com.