#35648: SafeString and overriding addition do not work well together
-------------------------------------+-------------------------------------
Reporter: Matthias Kestenholz | Owner: Matthias
| Kestenholz
Type: Bug | Status: assigned
Component: Utilities | Version: dev
Severity: Normal | Resolution:
Keywords: safestring | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):
* keywords: => safestring
* stage: Unreviewed => Accepted
* version: 5.0 => dev
Comment:
Hello Matthias! Thank you for taking the time to create this ticket and
the corresponding PR.
I'm accepting on the basis that I agree with your reasoning that it is
expected that a `SafeString` instance should work and operate like any
`str` since
[https://docs.djangoproject.com/en/5.0/ref/utils/#django.utils.safestring.SafeString
the docs] clearly say:
> A str subclass that has been specifically marked as “safe” (requires no
further escaping) for HTML output purposes.
--
Ticket URL: <https://code.djangoproject.com/ticket/35648#comment:2>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/010701910a4db5a3-eff79879-5c0f-4c07-98ce-38dfe300d1de-000000%40eu-central-1.amazonses.com.