#33465: Introduce empty __slots__ protocol for SafeString & SafeData
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:  Keryn
         Type:                       |  Knight
  Cleanup/optimization               |                   Status:  closed
    Component:  Utilities            |                  Version:  dev
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55022f75c1e76e92206e023a127532d97cedd5b7" 55022f75]:
 {{{
 #!CommitTicketReference repository=""
 revision="55022f75c1e76e92206e023a127532d97cedd5b7"
 Fixed #33465 -- Added empty __slots__ to SafeString and SafeData.

 Despite inheriting from the str type, every SafeString instance gains
 an empty __dict__ due to the normal, expected behaviour of type
 subclassing in Python.

 Adding __slots__ to SafeData is necessary, because otherwise inheriting
 from that (as SafeString does) will give it a __dict__ and negate the
 benefit added by modifying SafeString.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33465#comment:5>
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/067.0dcc8dc9c640061346cef5067d2bab72%40djangoproject.com.

Reply via email to