#19543: SimpleLazyObject missing __repr__ proxy ----------------------------------+------------------------------------ Reporter: spinus | Owner: nobody Type: Bug | Status: new Component: Core (Other) | Version: master Severity: Normal | Resolution: Keywords: SimpleLazyObject | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 1 | Patch needs improvement: 1 Easy pickings: 1 | UI/UX: 0 ----------------------------------+------------------------------------ Changes (by ptone):
* needs_better_patch: => 1 * component: Uncategorized => Core (Other) * needs_tests: => 1 * version: 1.5-beta-1 => master * easy: 0 => 1 * needs_docs: => 0 * stage: Unreviewed => Accepted Comment: Since a lazy object represents itself as the target class - it should try to be that class as much as possible, and not try to be "something special" even though it is. So __repr__ should just proxy like other magic methods on the class. Accepting the ticket based on the fact that we should do something explicit for __repr__, but rejecting the wrapped result. -- Ticket URL: <https://code.djangoproject.com/ticket/19543#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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.