#18963: Pattern for object model compatibility isn't friendly for subclasses
-------------------------------------+-------------------------------------
Reporter: aaugustin | Owner: aaugustin
Type: | Status: assigned
Cleanup/optimization | Version: master
Component: Python 3 | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by aaugustin):
* status: new => assigned
* owner: nobody => aaugustin
* stage: Unreviewed => Accepted
Comment:
Answer from #python-dev on the last question:
>That's the way the interpreter looks up `__magic__` methods. They aren't
looked up on the object but on the class of the object.
It's safer to mimick the interpreter's behavior closely, so let's adopt
the same pattern.
--
Ticket URL: <https://code.djangoproject.com/ticket/18963#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.